wood burning stoves 2.0*
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 8 in Action this week in the Java 8 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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple parameters by html:link
 
Similar Threads
use html:link pass two param
problem passing parameter in html:link
Global forwards in Struts modules
Multiple params in html:link
URL mapping