Ur link should call .do that populates the form for 'ShowMe.jsp' and sets it
in the session

----- Original Message -----
From: "Frederic Dernbach" <[EMAIL PROTECTED]>
To: "struts-user" <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 4:51 PM
Subject: <html:link> adn Struts usage - question from a newbee


> Inside a JSP, I would like to implement a link to a Struts action that
> forwards back to the initial JSP WITHOUT LOOSING THE FORM'S DATA.
>
> Let's have a simple (and stupid) example so I can make myself understand
> better.
>
> Using struts, we have a JSP ("/ShowMe.jsp") with a form stored in
> request or session scope (I tried both scopes without success). Inside
> the JSP, there a simple link such as :
> <html:link page="/ShowItAgain.do">Go<html:link/>
> The Struts action associated to the link does not do anything. It   just
> forwards back to "/ShowMe.jsp" (thanks to the appropriate return
> statement and struts-config.xml entry).
>
> What should I do so that the form's data is not lost once the link is
> clicked on ? I do not want use a submit button for this purpose ,(I need
> a link).
>
> Thanks in advance for any help.
>
> Fred
>
>
> ---------------------------------------------------------------------
> 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