struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanl...@gmail.com
Subject Re: Retaining request attributes after redirect
Date Fri, 28 Mar 2008 13:32:56 GMT
Have you looked at the chain
<http://struts.apache.org/2.0.11.1/docs/chain-result.html>result type?

On Fri, Mar 28, 2008 at 8:25 AM, ancatdubher <ancatdubher@gmail.com> wrote:

>
> Hi,
>
> I am building a simple registration module. The user accesses
> /signup.action
> to view signup.jsp. This JSP allows him to enter username, password, phone
> and address. When submitted, the /createUser.action is invoked. Validation
> of form data also happens here. When form data is invalid, I do a
> redirect:
>
> <action name="createUser">
>    <result name="validationFailed" type="action-redirect">signup</result>
> </action>
>
> This loses all request attributes.
> I can reclaim the error messages by adding the Message Store interceptor.
> But I would like to be able to display the Signup.jsp back with all fields
> entered by the user. (username, password, phone and address - which are
> members of the USER object member on the createUser action)
> How do I retain these attributes?
>
> -Thanks, Ancat
> --
> View this message in context:
> http://www.nabble.com/Retaining-request-attributes-after-redirect-tp16349672p16349672.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Scott
stanlick@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message