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

[1333 byte] By [timhuya] at [2007-11-27 7:50:13]
# 1

Correction:

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

should be

I want to associate the rptDisplayForm 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

timhuya at 2007-7-12 19:31:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...