Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query strings in struts 1

Status
Not open for further replies.

ukindian2001

Programmer
Jan 13, 2004
5
GB
Hi friends,
I want to pass a bean proprty value as query string in html:link action tag.How to do that..Or is there any other way to pass query strings..

i need exactly something like this

<html:link action=&quot;/View?<bean:write name=&quot;XXX&quot; property=&quot;xxx&quot;/>&quot;>view</html:link>

I have no idea how to proceed from here...Pls help me again
thnaks a lot
 
Try this.

<html:link action=&quot;/View paramId=&quot;param&quot; paramName=&quot;XXX&quot; paramProperty=&quot;xxx&quot;/>view</html:link>

Say property xxx of bean XXX is &quot;abc&quot;, it will result in an HTML snippet:

<a href=&quot;/View?param=abc>view</a>

 
Hi byam,
excellent stuff..Thank u so much for ur immediate reply..I cant find a better documentation in jakarta site..can u just send me the links if possible please

thanks and regards
siva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top