• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTML tags Do Not Display

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing a BLog using MySql, JSP, Spring , WebSphere Portlet.
I store all my articles in MySQl database in field which is type LongText.
In that field all the articles have HTML tags attached with the text.

When i display my blogs text on the JSP page via a variable, the HTML tags do not display there fore all the links and html formating is not displayed. Please help me to solve this problem, because i can get the text
from the MySql database, but all the html formating is not displaying rather showing up in the displayed text. follwoing is my code

the blogEntry.BODY is the field which contains text and html.

c:forEach items="${blogEntryList}" var="blogEntry">

value="${blogEntry.blogs.BLOG_ID}"/>
value="${blogEntry.TITLE}"/>
value="${blogEntry.BODY}"/>
c:forEach>

The text coming from database MySql field type LongText, it is displayed as it is with the tags, i want all the formating and links to show up in the portlet JSP
========================================================================
[ November 03, 2008: Message edited by: Syed Ali ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please use real words when posting to the forums. Abbreviations such as "bcz" in place of "because" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

Also, be sure to disable smilies when posting code.

thanks,
bear
JavaRanch sheriff
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Inspect the attributes to <c:out> for your answer.
 
They worship nothing. They say it's because nothing is worth fighting for. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic