Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - String containing HTML code is not rendering in JSP

 
Thread Tools Search this Thread
Old 10-20-2009, 11:40 AM   #1
Question String containing HTML code is not rendering in JSP


Hi,
I have a JSR168 portlet that uses portlet preferences to store a HTML string.

When I want to display this value in my JSP, I'm calling:

Code:
<% String breadcrumbText = (String)preferences.getValue(FCC_GenericCategoryPortlet.EDIT_DEFAULTS_KEY7, ""); %>

Code:
<%=breadcrumbText %>

The value of breadcrumbText is: You are here: <a href="/index.html">Home</a> > A to Z of Services

And what I would like it to print out in my JSP as:
You are here: Home > A to Z of Services

If I create another String:

Code:
String htmlTest = "<b><u>Bold and underlined</u></b>";

Then output this as:

Code:
<%=htmlTest %>

Then the tect is bold and underlined as expected.

Is there a way I can get my breadcrumbText String to be output in the same was as htmlTest?

Thanks


ducey
ducey is offline   Reply With Quote
Old 11-03-2009, 08:11 AM   #2
ducey
Junior Member
 
Join Date: Oct 2009
Posts: 2
Default
Has anyone seen this problem before? I've still not found a solution, so I think it might be an issue that only IBM can fix.

Anyone got any suggestions?


ducey
ducey is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Give you enough string functions in Java web reporting tool freezea Software 0 10-08-2009 09:03 AM
urgent help....need urgent help on say string task.. pooja Software 0 03-03-2009 06:16 AM
Java String Problems rbnbenjamin General Help Related Topics 0 02-03-2009 11:02 PM
ASP.NET: Asign Users in Roles(Array.IndexOf(Of String) method) msandlana Software 0 04-25-2008 06:37 AM
Hidden linebreaks in string? VB.NET Jiggy Software 0 04-23-2008 02:18 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46