Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html escape chars on page rendering

 
Mohit Agarwal
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please provide the solution for the following problem :

on my page things should appear as:

Are you Married?
radio-button(Yes) radio-button(No).

So a married is a link which is defined as a href=# onmouseov=some content.

The problem is that "Are you married?" is read from the data-base.
I made a java-bean which contains the display property.

After fetching the display i edit it to show the link.

The anchor tag i am adding through my java-code to the display is interpreted with escape chars for less than, gretaer than & quotes so the entire anchor tag appaers on the screen
which is not wanted ?

Any help or suggestions are most welcome.

By the way , i had these placed these bean objects in a map and the map is a part of the form-bean.
I iterating through the map using the nested:iterate tag.

Thanks in advance.

Mohit.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using the <bean:write> tag to display this information, specify filter="false". This will tell Struts not to escape certain characters.

If you're using <cut>, specify escapeXml="false".
[ January 12, 2006: Message edited by: Merrill Higginson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic