Thanks for answering.Your inputs do not solve the problem.
However, I found the solution in the mail archive (have javascript
submit the form):
<html:link href="#" onclick="document.forms[0].submit();return false;" >
Go
</html:link>
Returning false makes sure there is one request only.
Cheers.
Fred
Le mer 05/11/2003 Ã 18:08, Ashish Sinha a Ãcrit :
> Hi Fred,
>
> Try this and let me know.
>
> <html:link action="\ShowItAgain.do" >Refresh</html:link>
>
> Rgds,
> Ashe.
>
>
> ----- Original Message -----
> From: "Frederic Dernbach" <[EMAIL PROTECTED]>
> To: "struts-user" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 05, 2003 11:21 AM
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]