This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes query string in html:link Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "query string in html:link" Watch "query string in html:link" New topic
Author

query string in html:link

Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Hi all,
I want to pass a bean property value as query string in html:link action tag.How to do that?
i need exactly something like this
<html:link action="/Display?<bean:write name="XXX" property="xxx"/>">display data</html:link>
Thanks
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4419
    
    5

You can't nest tags the way you are trying to do. Check out the name, property, paramID, paramName, paramProperty, and paramScope attributes for the link tag.
See the descriptions of these attributes here: http://jakarta.apache.org/struts/userGuide/struts-html.html#link


Junilu - [How to Ask Questions] [How to Answer Questions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: query string in html:link
 
Similar Threads
use html:link pass two param
Getting Value From html:Link
Struts and Hibernate how to display in jsp file
html:link tag using chinese parameters
request parameter set in html:link showing the classname instead of value