You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sheetal Gupta <Sh...@hsc.com> on 2006/09/14 14:20:14 UTC
Hpw to pass multiple parameters in
Hi,
Can anybody tell me how to pass multiple parameters
in <html:link>
I tried the following snippet,
<bean:define id="cmdExec" value= "CmdExec" />
<tr>
<td>
<bean:define id="deviceType" value= "ACU" />
<html:link action="/dispatchBrowser.do" paramId="DeviceType" paramName
="deviceType"
paramId="Module" paramName="cmdExec" target="showframe" >cmd</
html:link>
</td>
</tr>
:
but it don't work..
It is only giving value of "Module"
and not the "DeviceType"
Regards,
Sheetal
Re: Hpw to pass multiple parameters in
Posted by Laurie Harper <la...@holoweb.net>.
Alternatively, you can stick with html:link but supply your parameters
as a map:
<html:link action="..." name="myParamMap"
or
<html:link action="..." name="myBeanMap" property="myParamMap"
See the documentation for the html:link tag for more details:
http://struts.apache.org/1.2.9/userGuide/struts-html.html#link
L.
Andrè Kapp (AJ) wrote:
> You can use this type of link
>
> href='<c:url value="/mailMemberAction.do?exec=updateValidMailMember"
> context="/xxxxxxxxxxxxx"> // put your app name here to keep context
> <c:param name="masterGroupName"
> value="${groups.masterGroupName}"/>
> <c:param name="listName"
> value="${groups.listName}"/>
> <c:param name="memberName"
> value="${groups.memberName}"/>
> </c:url>'>
>
> Andre
>
> -----Original Message-----
> From: Sheetal Gupta [mailto:Sheetal.Gupta@hsc.com]
> Sent: 14 September 2006 02:20 PM
> To: Struts Users Mailing List
> Subject: Hpw to pass multiple parameters in <html:link>
>
> Hi,
> Can anybody tell me how to pass multiple parameters in <html:link> I
> tried the following snippet, <bean:define id="cmdExec" value=
> "CmdExec" /> <tr> <td> <bean:define id="deviceType" value= "ACU" />
>
> <html:link action="/dispatchBrowser.do" paramId="DeviceType"
> paramName
> ="deviceType"
> paramId="Module" paramName="cmdExec" target="showframe" >cmd</
> html:link>
> </td>
> </tr>
> :
> but it don't work..
> It is only giving value of "Module"
> and not the "DeviceType"
>
> Regards,
> Sheetal
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Hpw to pass multiple parameters in
Posted by "Andrè Kapp (AJ)" <Ka...@telkom.co.za>.
You can use this type of link
href='<c:url value="/mailMemberAction.do?exec=updateValidMailMember"
context="/xxxxxxxxxxxxx"> // put your app name here to keep context
<c:param name="masterGroupName"
value="${groups.masterGroupName}"/>
<c:param name="listName"
value="${groups.listName}"/>
<c:param name="memberName"
value="${groups.memberName}"/>
</c:url>'>
Andre
-----Original Message-----
From: Sheetal Gupta [mailto:Sheetal.Gupta@hsc.com]
Sent: 14 September 2006 02:20 PM
To: Struts Users Mailing List
Subject: Hpw to pass multiple parameters in <html:link>
Hi,
Can anybody tell me how to pass multiple parameters in <html:link> I
tried the following snippet, <bean:define id="cmdExec" value=
"CmdExec" /> <tr> <td> <bean:define id="deviceType" value= "ACU" />
<html:link action="/dispatchBrowser.do" paramId="DeviceType"
paramName
="deviceType"
paramId="Module" paramName="cmdExec" target="showframe" >cmd</
html:link>
</td>
</tr>
:
but it don't work..
It is only giving value of "Module"
and not the "DeviceType"
Regards,
Sheetal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org