Hi,
I have a
struts web application which has several sub applicaitons. Sub application 1 has a flow specified in it own config.xml like
Config1.xml
<action name="/actionA.do".......>
<forward name="ForwardA" path="a.jsp/>
<forward name="ForwardB" path="/actionB.do?action=prepare"/>
</action>
<action name="/actionB.do".......>
<forward name="ForwardB" path="b.jsp/>
<forward name="ForwardC" path="/actionC.do?action=prepare"/>
</action>
The same flow with a slight modification is required in another sub application.
Can i use the same action classes, action forms and
JSP's defined in sub application1? More over the JSP pages uses JSTL tags which in turn uses form names for referring attributes like
<c:if test="${empty formA.name}"/>
and the form has been set in session scope. This forces me to define the same form names and action names in config.xml of sub application 2.
My questions are
1. Is there any way to reuse the same action classes, forms and JSP in the sub application2?
2. If same form names are used in both the config.xml how to differentiate the form beans in session among the sub applicaitons?
Thanks,
Ajay.