aspose file tools
The moose likes Struts and the fly likes GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "GUI" Watch "GUI" New topic


Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252

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..


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62317

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 .

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Joe Ess

Joined: Oct 29, 2001
Posts: 9077

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

[How To Ask Questions On JavaRanch]
Don't get me started about those stupid light bulbs.
subject: GUI