Those are two different things. 'parameter' is a standard attribute of
the 'action' element, which many of the standard action classes expect
(and can access via getParameter()). The 'set-property' element is a
means of passing arbitrary additional parameters to an action. The two
aren't interchangeable.
L.
Martin Gainty wrote:
I have not seen parameter as an attribute of <action path=
it is better to break the parameter away from action tag something like
<set-property property="method" value="method"/>
Anyone else???
M-
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Monday, October 17, 2005 6:18 PM
Subject: I am getting frustrated with LookupDispatchAction
Hi. I am using struts 1.2.7. My struts-config-xml file has the following:
<action path="/mywizard1"
name="wizardForm"
scope="session"
type="edu.nmsu.psl.userwizard.AddPSLUserWizardAction"
input="/step1.jsp"
validate="false"
parameter="method">
<forward name="next" path="/step2.jsp"/>
</action>
my jsp has the following:
<html:submit property="method"><bean:message
key="button.next"/></html:submit>
But I get the following error in tomcat:
javax.servlet.ServletException: Request[/mywizard1] does not contain
handler parameter named 'method'.
Can someone save me from insanity?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]