This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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.
jQuery in Action, 3rd edition
subject: can we one please explain what is going on here
It's not a secret anymore!