Passing beans between JSP pages
This is a section of the struts-config.xml
<action path="/rptQuery"type="actions.RptQueryAction"
name="rptQueryForm"scope="request" >
<forward name="success"path="/rpt_display.jsp"/>
</action>
The rptQuery action is associated with my rpt_query.jsp. When I submit the form, rptQuery action is executed, taking information from the bean rptQueryForm, apply business logic and create a result bean rptDisplayForm.
I want to associate the rptQueryForm bean with the JSP rpt_display.jsp.
The only way I know on how to do this is to create an entry in the struts-config.xml like
<action path="/rptDisplay"type="actions.RptDisplayAction"
name="rptDisplayForm"scope="request" >
</action>
In other words, I have to associate an ACTION rptDislay with a form bean rptDisplayForm and in the JSP page I must have the html:form declaration with action points to rptDisplayAction. Doing this way, Struts will do all kinds of form input initializations automatically.
Unfortunately, the rpt_display.jsp is the end-of-thechain page. It will not open any other JSP page. In other words, although it has the html:form element, but its action should point to nowhere.
What will be the right Struts way to achieve this goal ?
Thanks

