This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Same action name appearing twice in struts config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Same action name appearing twice in struts config" Watch "Same action name appearing twice in struts config" New topic
Author

Same action name appearing twice in struts config

Nitin Nigam
Ranch Hand

Joined: Jul 03, 2006
Posts: 129
Hi Ranchers,

I am trying to understand a application code where i saw more than on action elements with same action names (but different action path)
For example:


I am not sure how will struts pick an action in this case. Can anybody help me on this.


Nothing is impossible; for those who doesnt have to do it themselves.
myjotting.blogspot.com
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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 !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
Consider Paul's rocket mass heater.
 
subject: Same action name appearing twice in struts config
 
Similar Threads
By passing forward in action tag.
forwarding to a servlet instead of a jsp
Forward in an action forms reset method.
forwarding between action classes
Cannot Find Bean inscope null