• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a String with variable name problem as given below ...

problem = "<b>Date: </b>"+childElement.getAttributeValue("date")+"<br> Submitter: "+childElement.getAttributeValue("submitter")+"<br><b> Notes: </br></b>"+childElement.getText();

In my jsp, am displaying it using

<bean:write name="problem"/>,

But, the <b>,<br> tags are not getting effected.

What needs to be done?

Kindly help..

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a simplistic title like "GUI" doesn't tell us anything about your post.

You can go back and change your post to add a more meaningful subject by clicking the .
 
Joe Ess
Bartender
Posts: 9313
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the filter attribute of the bean:write tag to false:

If this attribute is set to true, the rendered property value will be filtered for characters that are sensitive in HTML, and any such characters will be replaced by their entity equivalents.


Struts Bean Taglib Documentation
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic