You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Doyle <pe...@teomedia.com> on 2001/04/18 17:14:26 UTC
html:link only uses the last param* attributes
When I do this
<html:link page="/editLoginInfo.do"
paramId="srcAction" paramName="personalInfoForm"
paramProperty="personal"
paramId="action" paramName="personalInfoForm" paramProperty="action"
paramId="personnelID" paramName="personalInfoForm"
paramProperty="personnelID"
>
<bean:message key="loginInfo.title"/>
</html:link>
The rendered URL is
<a
href="http://192.168.0.190:8082/mm06/editLoginInfo.do?personnelID=1">Login
Information</a>
If I change the order of the paramId's the rendered query string only
contains the last parameter specified.
I know I can use a hashtable of parameters, but I'm trying to get it to work
this way.
Cheers
Peter
Re: html:link only uses the last param* attributes
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Wed, 18 Apr 2001, Peter Doyle wrote:
> When I do this
>
> <html:link page="/editLoginInfo.do"
> paramId="srcAction" paramName="personalInfoForm"
> paramProperty="personal"
> paramId="action" paramName="personalInfoForm" paramProperty="action"
> paramId="personnelID" paramName="personalInfoForm"
> paramProperty="personnelID"
> >
> <bean:message key="loginInfo.title"/>
> </html:link>
>
>
> The rendered URL is
> <a
> href="http://192.168.0.190:8082/mm06/editLoginInfo.do?personnelID=1">Login
> Information</a>
>
>
> If I change the order of the paramId's the rendered query string only
> contains the last parameter specified.
>
> I know I can use a hashtable of parameters, but I'm trying to get it to work
> this way.
>
>
> Cheers
> Peter
>
>
>
It is never legal to use the same attribute name more than once in the
same tag - that's a standard rule of markup languages like HTML and XML
(and is inherited by the rules for JSP custom tags).
Craig McClanahan