You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by starki78 <st...@libero.it> on 2005/11/21 12:11:42 UTC
How to call a dispatch-Action from a link?
in this example the first works and the second not:
dispatch from a submit-buttom:
//--<this works
<html:form action="/lookupdispatch2">
<html:submit property="method">
<bean:message key="button.nix"/>
</html:submit>
dispatch from a link
<html:link action="/lookupdispatch2.do" paramId="method" >
<bean:message key="button.nix"/>
</html:link>
</html:form>
I get the error after clicking the link:
Request[/lookupdispatch2] does not contain handler parameter named 'method'.
Can someone help me?
Thank you!
Ciao
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to call a dispatch-Action from a link?
Posted by Su...@Keane.com.
To specify the corresponding value of paramId, you can use only one of the
following approaches:
Specify only the paramName attribute - The named JSP bean (optionally
scoped by the value of the paramScope attribute) must identify a value
that can be converted to a String.
Specify both the paramName and paramProperty attributes - The specified
property getter method will be called on the JSP bean identified by the
paramName (and optional paramScope) attributes, in order to select a value
that can be converted to a String.
For more detail you can refer following link
http://struts.apache.org/struts-doc-1.2.4/userGuide/struts-html.html#link
Hope it helps
Sunil
"starki78" <st...@libero.it>
11/21/2005 04:41 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>
To
"user" <us...@struts.apache.org>
cc
Subject
How to call a dispatch-Action from a link?
in this example the first works and the second not:
dispatch from a submit-buttom:
//--<this works
<html:form action="/lookupdispatch2">
<html:submit property="method">
<bean:message key="button.nix"/>
</html:submit>
dispatch from a link
<html:link action="/lookupdispatch2.do" paramId="method" >
<bean:message key="button.nix"/>
</html:link>
</html:form>
I get the error after clicking the link:
Request[/lookupdispatch2] does not contain handler parameter named
'method'.
Can someone help me?
Thank you!
Ciao
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org