You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sébastien Bergia <se...@edifixio.com> on 2003/05/09 10:23:23 UTC

[VERY URGENT] How to pass one form through multiple JSP ?

Hello,

I have to make some JSP in order to implement a search module on my site.
A first jsp corresponds to a text field for the query, with a submit button.
When I click on this one, an action is called and this action use the query to fill in a form with different result lists.
Then, this action redirect me to a JSP results pages that only show me the number of results in each list (so I just have to show the length of each list, without their contain).
Then, when I click on one of these results, I would like to go to another JSP page that shows detailled results, without making the search one more time, so using the form I have filled in earlier.

But I do not manage to do the last thing.

Actually, when my form is populated (with the first action), I put the different list into the session, using the following line in my form class :

HttpServletRequest request;
request.getSession().setAttribute("listResult1", listResult1);
request.getSession().setAttribute("listResult2", listResult2);
...

I think I have to manipulate the different form's scope, but I don't know how...
My form has request scope, just like the associated action...

THX FOR YOUR HELP

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org