File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Similar Action mappings in two xml files but parameters different?

 
Arjun Reddy
Ranch Hand
Posts: 629
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am looking at two struts xml files with names struts-login.xml and struts-config.xml with similar action mappings except for the parameter attributes which is different. So what exactly does this mean? What is the usage of the parameter attribute and what’s the usage of having similar action mappings in different xml files with just the parameter attribute different?

Thanks.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "parameter" attribute is used in dispatch actions and controls which action method will be called.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:The "parameter" attribute is used in dispatch actions and controls which action method will be called.


Thanks for replying David. I have a question though. Does the type attribute have to be something like type="org.apache.struts.actions.DispatchAction" then? Because, the type attribute in the struts xml files I see are like com.login.LoginSubmitAction. DispatchAction is not mentioned anywhere.



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...

Maybe it's a subclass; I have no way of knowing.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic