File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes problem displaying  greaterthan, etc special characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem displaying  greaterthan, etc special characters" Watch "problem displaying  greaterthan, etc special characters" New topic
Author

problem displaying greaterthan, etc special characters

Raghu Krishna
Greenhorn

Joined: Jul 15, 2005
Posts: 8
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

Joined: May 14, 2007
Posts: 244
Hi,
I suggest you to use jstl, expecially <cut>


SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="http://www.enthuware.com" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
Raghu Krishna
Greenhorn

Joined: Jul 15, 2005
Posts: 8
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

Joined: Jan 10, 2002
Posts: 60059
    
  65

"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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

"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


My Blog: Down Home Country Coding with Scott Selikoff
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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)


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem displaying greaterthan, etc special characters
 
Similar Threads
Display Source Code in JSP
tags
special characters in jstl
GUI
GUI