• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Similar Action mappings in two xml files but parameters different?

 
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
...

Maybe it's a subclass; I have no way of knowing.
 
reply
    Bookmark Topic Watch Topic
  • New Topic