• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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: 67756
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: 67756
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic