File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Multiple parameters by html:link 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 "Multiple parameters by html:link" Watch "Multiple parameters by html:link" New topic

Multiple parameters by html:link

Satish Kulkarni
Ranch Hand

Joined: Jul 19, 2003
Posts: 60
I want to to set multiple paramenters examples
How would I do this with the html:link tag.
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
By making the tag's "name" attribute point to a java.util.Map (using that JavaBean's name as the value for the name attribute). The Map's keys are the names for query parameters and the values are either individual Strings representing a single value or a String array representing multiple values for the query parameter.
The documentation for <html:link/> can be found from here.
[ March 31, 2004: Message edited by: Lasse Koskela ]

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: Multiple parameters by html:link
It's not a secret anymore!