Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
problem with url rewriting in sturts link
Tirthankar Dutta Chaudhuri
Ranch Hand
Posts: 48
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi ,
I need to generate a url dynamically with the values coming from bean .
I have written the following code
[CODE<logic:iterate id="user" name="users">
<TR>
<TD><html:link page='/AddUser.do?userid='>
<bean:write name="user" property="userId" />
</html:link>
<bean:write name="user" property="userId" /></TD>
<TD><bean:write name="user" property="userDescription" /></TD>
</TR>
</logic:iterate>
[/CODE]
But its getting tranlated to
<a href="/App54_Prototype_UI/AddUser.do?userid="PSS011</a>
but i want something like <a href="/App54_Prototype_UI/AddUser.do?userid=PSS011"</a>
Please let me know what changes i need to make to my code .
Tirthankar
Merrill Higginson
Ranch Hand
Posts: 4864
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You will find the answer by looking closely at the information on the <html:link> tag in the
Struts
Taglib documentation.
<html:link action="/AddUser" paramId="userid" paramName="user" paramProperty="userId" >click here</html:link>
[ April 11, 2008: Message edited by: Merrill Higginson ]
Merrill
Consultant,
Sima Solutions
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Using bean:write with html:link
Using bean:write with html:link
html:link in logic:iterate
JSP Dynamically generated link needs to be associated with different form and submitted
Problem with html:link paramName and paramId
More...