A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Same action name appearing twice in struts config
Joined: Jul 03, 2006
Jul 07, 2008 03:19:00
I am trying to understand a application code where i saw more than on action elements with same action names (but different action path)
<action name="myAction" path = "/myResource1"> <forward>.......</forward> </action> <action name="myAction" path = "/myResource2"> <forward>.......</forward> </action>
I am not sure how will
pick an action in this case. Can anybody help me on this.
Nothing is impossible; for those who doesnt have to do it themselves.
Joined: Feb 19, 2008
Jul 07, 2008 03:57:00
Here both the action url call the same action class , It happens in some scenario ,
like User registration , the admin can register the user , plus the general user too !
[Freelance Web Designer]
[and "Rohan" is part of my surname]
I agree. Here's the link:
subject: Same action name appearing twice in struts config
Forward in an action forms reset method.
forwarding to a servlet instead of a jsp
By passing forward in action tag.
Cannot Find Bean inscope null
forwarding between action classes
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014