File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Html Link Multiple parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Html Link Multiple parameters" Watch "Html Link Multiple parameters" New topic

Html Link Multiple parameters

Patrick McDonogh
Ranch Hand

Joined: Oct 13, 2005
Posts: 89
Hi all,

I am using a <html:link> tag and am wondering how to add multiple parameters to the request.

For instance i can add one parameter using paramId and paramName i.e.

<html:link action="/theAction" paramId="id" paramName="theId"/>

What my question is is how do i add multiple parameters to the html link tag.

Cheers and have a great day.

RoshaniG Gopal
Ranch Hand

Joined: May 15, 2006
Posts: 180
this would help you.

Regards,<br />Roshani
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you're using the latest version of Struts 1 (Struts 1.3.8) you can embed multiple <html:param> tags inside your <html:link> stanza.

If you're using an earlier version, you will have to use the method suggested in Roshani's link.
[ May 09, 2007: Message edited by: Merrill Higginson ]

Consultant, Sima Solutions
I agree. Here's the link:
subject: Html Link Multiple parameters
It's not a secret anymore!