Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem displaying greaterthan, etc special characters

 
Raghu Krishna
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
 
Mirko Bonasorte
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I suggest you to use jstl, expecially <cut>
 
Raghu Krishna
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I havent tried with <cut> 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 <cut> 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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
 
Scott Selikoff
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • 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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by srinivas knr:
...
I havent tried with <cut> 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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic