Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-06-2008, 10:31 AM
Member
 
Join Date: Apr 2008
Posts: 5
nanimtech is on a distinguished road
encoding special characers in jsp
Hi folks
In my jsp iam going to populate special characters ((*&), it is
working fine, but if i substring that one to certain limit(for ex:10)
for example if i give like --> & to populate in jsp it is
taking as --> & and it is going to substring and it is
taking upto--> &<&
but the xml parser not able to parse and thrown NotWellFormed exception
how can i overcome this one.
Advance appreciation for any ideas..

-Naresh
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-06-2008, 12:13 PM
rjuyal's Avatar
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 129
rjuyal is on a distinguished road
escape
may be you want to use escapeHTML , escapeXML


__________________
Newton said Gravitaion, Rakesh says Earth Sucks
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-06-2008, 02:14 PM
Member
 
Join Date: Apr 2008
Posts: 5
nanimtech is on a distinguished road
I have tried like that .. but it is showing same thing..
can you please let me know what are all possibilities..
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-06-2008, 02:22 PM
rjuyal's Avatar
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 129
rjuyal is on a distinguished road
escapeXml
if you are using JSTL

<coreut value="${variableNameHodlingValue}" escapeXml="true"/>
__________________
Newton said Gravitaion, Rakesh says Earth Sucks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some help with encoding... nm123 Networking 0 04-15-2008 01:22 AM
special characters ravian New To Java 2 11-16-2007 02:28 PM
Convert some special characters stored in a MySql romina Database 1 08-07-2007 06:32 AM
show special symbol using its Unicode character christina AWT / Swing 1 07-25-2007 10:21 AM
Special characters in text fields Felissa Web Frameworks 0 06-27-2007 05:47 PM


All times are GMT +3. The time now is 09:25 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org