This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Multiple params in html:link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple params in html:link" Watch "Multiple params in html:link" New topic
Author

Multiple params in html:link

Vineela Devi
Ranch Hand

Joined: Dec 20, 2003
Posts: 191
Hi,

How can I pass multiple parameters using <html:link>?

i.e. If I have an employee object, i have to pass both id and name as params when i click on the link.


Thanks in Advance

Vineela
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
The <html:link> tag has a parameter called 'name', which is described by the documentation as follows:
The name of a JSP bean that contains a java.util.Map representing the query parameters (if 'property' is not specified), or a JSP bean whose property getter is called to return a Map (if 'property' is specified).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multiple params in html:link
 
Similar Threads
Passing values in a form with multiple actions
How to add more than one parameter in url
mutiple parameter with html link
use html:link pass two param
how to use html:link to pass two different parameter