• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

problem with url rewriting in sturts link

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will find the answer by looking closely at the information on the <html:link> tag in the Struts Taglib documentation.

[ April 11, 2008: Message edited by: Merrill Higginson ]
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic