wood burning stoves*
The moose likes Struts and the fly likes struts 2 property tag issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts 2 property tag issue" Watch "struts 2 property tag issue" New topic
Author

struts 2 property tag issue

vishal kola
Greenhorn

Joined: Jan 26, 2011
Posts: 2
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

Joined: Dec 22, 2009
Posts: 88

write it as: <s:property value="#question.questionText" escape="false" />, it will do the job.


SCJP 91%, SCWCD 97%
vishal kola
Greenhorn

Joined: Jan 26, 2011
Posts: 2
Thanks... it did work
 
 
subject: struts 2 property tag issue