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?
The "parameter" attribute is used in dispatch actions and controls which action method will be called.
Joined: Nov 10, 2007
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.