File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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>