Hi,
If i understand u right u are saying that same request will be handled by more 
than one action..
e.g. Some thing like if user logs in, check his login credentials and then give 
him the list of his accounts in a banjking app.So u wil like to have a 
LoginAction(which just checks login) and a getAccountsAction(which just fetches 
accounts for a given user..)So that they can be reused in other context...
I think this is how u will design a struts application..And u just need to do 
the following..

>From the jsp, call the first action(LofinAction.do in our case),In the first 
action ,do the work(check login in our case)and do the necessary forward(in our 
case maping.findFroward("success") or  maping.findFroward("failure")) at the 
end.And when defining the Actons mapping for LoginAction, define the 2 forwards 
success and failure.The success will point to the mappinfg for the next action 
which is getAccountsAction in our case..

Hope this helps,
regards,
Shirish

-----Original Message-----
From: Souravmay.Das [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 1:14 PM
To: struts-user
Subject: how to call more than one Struts Action for a given HTTP
request


Hi All,
            I have a question can we call more than one Struts action for a
HTTP Request. Do you have any idea how to do it. The basic idea of having
more than one Struts actions, is for getting more fine grained reusable
component.
 
With regards,
Sourav Das
 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to