Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we one please explain what is going on here

 
Ami Choc
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

i want to understand why the same piece of code is written twice. In one path it is mentioned SearchAccountInitAction and other is simple Action class..what is the difference between the two action tags


<action attribute="searchAccountForm" input="template.searchAccount" name="searchAccountForm" path="/searchAccountInit" scope="request" type="ubs.logic.struts.action.account.SearchAccountInitAction" validate="false">
<forward name="NEXT_PAYMENT" path="/banking/createPaymentInit.do" contextRelative="true"/>
<forward name="SKIP_NEXT" path="/searchAccount.do" />
<forward name="NEXT" path="template.searchAccount" />
</action>

--------------------------------------------------------second action tag-------------------------------------
<action attribute="searchAccountForm" input="template.searchAccount" name="searchAccountForm" path="/searchAccount" scope="request" type="ubs.logic.struts.action.account.SearchAccountAction" validate="true">
<forward name="NEXT" path="/searchAccountResultsInit.do" />
<forward name="SKIP_NEXT" path="/searchAccount.do" />
<forward name="NEXT_PAYMENT" path="/banking/createPaymentInit.do" contextRelative="true"/>
<forward name="REFRESH" path="/searchAccountInit.do" />
</action>


Appreaciate your help please
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not duplicating the code they changing forward logic depending the request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic