aspose file tools*
The moose likes Struts and the fly likes can we one please explain what is going  on here Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can we one please explain what is going  on here" Watch "can we one please explain what is going  on here" New topic
Author

can we one please explain what is going on here

Ami Choc
Greenhorn

Joined: Aug 06, 2012
Posts: 8
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

Joined: Aug 01, 2007
Posts: 485

It's not duplicating the code they changing forward logic depending the request.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can we one please explain what is going on here