Wednesday, August 22, 2012

"parameter" attribute in the action-mapping... what is it?

It's a general purpose attribute you can use to pass any desired
information into the action from the struts-config.xml file.  You can
access the parameter's value within the action class via the
mapping.getParameter() method.  For actions requiring multiple steps, the
parameter is often used to indicate which step the mapping is associated
with.  For example:

               type="myactions.CreateSomethingAction"
               ...
               parameter="step1">...

               type="myactions.CreateSomethingAction"
               ...
               parameter="step2">...

               type="myactions.CreateSomethingAction"
               ...
               parameter="complete">...

I hope this helps.  Take care.

Don


http://www.mail-archive.com/struts-user@jakarta.apache.org/msg25267.html

No comments:

Post a Comment