Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


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: 4474
    
    6

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]
 
GeeCON Prague 2014
 
subject: query string in html:link