Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

problem with url rewriting in sturts link

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">

<TD><html:link page='/'>
<bean:write name="user" property="userId" />

<bean:write name="user" property="userId" /></TD>
<TD><bean:write name="user" property="userDescription" /></TD>

But its getting tranlated to

but i want something like <a href="/App54_Prototype_UI/"</a>

Please let me know what changes i need to make to my code .

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 ]
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic