Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 2 property tag issue

 
vishal kola
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am struggling with the property tag of Strust2 .

I am using it as follows
<s:property value="#question.questionText"/>

and the result is as TEXT as follows

asdas<img alt="sdasdasdaasdasda" src="http://localhost:8080/examjockey/images/manage-exams.png" align="none">

How do I make sure that I get something like this

asdas <image>

I mean I want it to show up as the HTML tags intended and not as plain TEXT.

Please help
 
Shashank Ag
Ranch Hand
Posts: 88
Java Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
write it as: <s:property value="#question.questionText" escape="false" />, it will do the job.
 
vishal kola
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks... it did work
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic