• 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

Populate attribute of html:link tag with bean property

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey all,

I am relatively new to JSP and Struts and I hope that's why I cannot get this simple thing to work.
I want to use html:link tags on a page that take the value for their 'title' attribute from a bean property. If I understand the documentation right, I can only use a constant value or a message resource there though. Is there a way to use a bean property?

Thanks for any hints.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's easier to grab the properties and build dynamic links if you do not use html:link. Use the plain ol' anchor <a> tag and build the href using your properties.
 
Thomas V�lk
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Marc Peabody:
It's easier to grab the properties and build dynamic links if you do not use html:link. Use the plain ol' anchor <a> tag and build the href using your properties.



Thanks for your answer

I guess I didn't see the wood for the trees. I was so focussed on using the link tag provided by Struts that I didn't even think about that.
 
You can't expect to wield supreme executive power just because
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic