Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with url rewriting in sturts link

 
Tirthankar Dutta Chaudhuri
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • 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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic