• 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
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Struts2 tags -- render HTML string from db?

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, hopefully this is a fairly basic question but I've got an HTML string that's saved in the database. I need it to render on my product page (ex, string has "<strong>Running Shoes</strong>" and it needs to render on the JSP as bold, etc)

Currently I'm trying to use <s roperty like this:

<s roperty value='product.longDescription'/>

to get the desired member from my Product object.

What's the best method to have the JSP actually render this HTML string and not just display all the tags?

Thanks!
Aaron
reply
    Bookmark Topic Watch Topic
  • New Topic