wood burning stoves 2.0*
The moose likes Struts and the fly likes Go to Struts Action (include parameter) with a hyperlink, without using <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 "Go to Struts Action (include parameter) with a hyperlink, without using <html:link>" Watch "Go to Struts Action (include parameter) with a hyperlink, without using <html:link>" New topic
Author

Go to Struts Action (include parameter) with a hyperlink, without using <html:link>

Phuc Bui
Greenhorn

Joined: Feb 19, 2009
Posts: 26
Dear all,
Is there anyway else to go to Struts Action (include parameter) with a hyperlink ? Except struts tag <html:link>
By the way, how can I include 2 or more parameters with <html:link> ? If I use <a href="">
I can include many parameters like url?id=123&name=abc for example
Thanks
Phuc Bui
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You can use a plain HTML link if you want, you just need to make sure you include the app context and the Struts action suffix.

The <html:link> tag also accepts the "property" and "name" attributes which will use a map to create the params. See the html:link tag documentation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Go to Struts Action (include parameter) with a hyperlink, without using <html:link>
 
Similar Threads
Problem with html:link paramName and paramId
how to use html:link to pass two different parameter
How to pass parameter to the next page with a html:link attribute
dynamic hyperlink (struts & ?JSTL)
how to include run-time parameter inStruts html:link forward