File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Same action name appearing twice in struts config