• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML tags Do Not Display  RSS feed

 
Syed Ali
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • 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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inspect the attributes to <cut> for your answer.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!