This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple params in html:link
 
Similar Threads
mutiple parameter with html link
use html:link pass two param
how to use html:link to pass two different parameter
How to add more than one parameter in url
Passing values in a form with multiple actions