Redirect is "false" by default. I also tried to put it in but it didn't
help. Also I have defined my html:form tag with scope as session as well as
the Action definition.


Thanks
 
-- pady
[EMAIL PROTECTED]
 

-----Original Message-----
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 04, 2003 5:19 PM
To: Struts Users Mailing List
Subject: RE: basic struts question....

> jsp page, shouldn't the form now be reloaded with the values
> entered ?
Yes if you forward and not redirect back to the page.
Make sure your redirect attribute of the forward element in
your action mapping is set to false. This, however, will
work regardless of the redirect attribute setting if your
form is in session scope.

robert

> -----Original Message-----
> From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2003 4:36 PM
> To: [EMAIL PROTECTED]
> Subject: basic struts question....
>
>
>
>
> I am writing my first struts app. If I have a jsp page ( with a
> html form )
> that has a corresponding ActionForm and the Action points back to the same
> jsp page, shouldn't the form now be reloaded with the values
> entered ? I see
> that in the Action.execute method, the ActionForm is loaded with all the
> values entered in the form, but when it forwards to the same jsp, now the
> form is empty. I am using the html tag library to build the form.
> Should the
> Action.execute method be setting the form values in the page context or
> session context and then manually get the values back in the JSP page ? I
> couldn't find an example where
>
> This workflow was happening:
>
>
>
> x.jsp ( html form ) -->  Action --> x.jsp ( displays the form
> values entered
> again )
>
>
>
>
>
> Any help is appreciated.
>
>
>
>
>
>
>
> Thanks
>
>
>
> -- pady
>
> [EMAIL PROTECTED]
>
>
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to