aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple parameters by html:link" Watch "Multiple parameters by html:link" New topic
Author

Multiple parameters by html:link

Satish Kulkarni
Ranch Hand

Joined: Jul 19, 2003
Posts: 60
Hi,
I want to to set multiple paramenters examples
http://www.struts.com/home.do?name=javaranch&id=43
How would I do this with the html:link tag.
Thanks
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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]
 
Consider Paul's rocket mass heater.
 
subject: Multiple parameters by html:link