Two Laptop Bag
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Multiple params in html:link" Watch "Multiple params in html:link" New topic

Multiple params in html:link

Vineela Devi
Ranch Hand

Joined: Dec 20, 2003
Posts: 191

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

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
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:
subject: Multiple params in html:link
It's not a secret anymore!