I have a situation of chain of Action classes.. I remember reading that its an inefficient way of doing it.
The situation is this ,
There is a page which lists an account details which can be modified and after they do the modification and click modify, they see their workspace with the list of accounts they work on.
I have an rendermodifyaction with modifyform bean which renders the prepopulated form
and when clicked modify the ModifyAction with modifyform bean does the modification and some
business logic calls.
I have a separate AccountListAction with accountlistform which renders the List of accounts
Everything works fine when separate. I am chaining Action to Action to collate this.
As follows
<action-mappings type="org.apache.struts.action.ActionMapping">
<action path="/modifyaction"
type="com.modifyaction"
validate="false">
<forward name="success" path="/AccountListAction.do" />
</action>
<action path="/AccountListAction "
type="com.AccountListAction "
scope="session"
validate="false">
<forward name="success" path="/result.jsp" />
</action>
</action-mappings>
Is this the right way and wot is the correct way to do the same