Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple parameters by html:link

 
Satish Kulkarni
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic