• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

problem displaying greaterthan, etc special characters

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am facing problem while displaying the data (containing < ,> etc in the database) onto the jsp.

"&gt;" is displayed instead of ">"

Please let me know how to resolve this.

Regards,
Srinivas
 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I suggest you to use jstl, expecially <c:out>
 
Raghu Krishna
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I havent tried with <c:out> tag

I am using <html:textarea> tag in which i am using the form field for displaying the data,
And the jsp is getting displayed from an ajax call.
So, not sure if i can use <c:out> inside <html:textarea>

I am not sure abt the problem, as the similar type of code without an ajax call, and with normal <textarea> tag of html, and using request object,
its displaying the <, > etc.. properly..

please advise me on this.

Regards,
Srinivas
 
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"srinivas knr",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
author
Posts: 4223
33
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Srinivas K"

Your name still does not conform to the JavaRanch naming policy. In particular, you may not use an initial for your last name. Please correct it ASAP.

Scott Selikoff
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by srinivas knr:
...
I havent tried with <c:out> tag

I am using <html:textarea> tag ...



So..
It looks like this is a Struts app.
We have a Struts specific forum where this question will probably do better.
I'll move it there for you.
(Don't forget to fix your screen name before posting to it)
 
    Bookmark Topic Watch Topic
  • New Topic