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

Win a copy of The Software Craftsman this week in the Agile forum!
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

can we one please explain what is going on here

Ami Choc

Joined: Aug 06, 2012
Posts: 8

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/" contextRelative="true"/>
<forward name="SKIP_NEXT" path="/" />
<forward name="NEXT" path="template.searchAccount" />

--------------------------------------------------------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="/" />
<forward name="SKIP_NEXT" path="/" />
<forward name="NEXT_PAYMENT" path="/banking/" contextRelative="true"/>
<forward name="REFRESH" path="/" />

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:
subject: can we one please explain what is going on here