954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem in getting symbol from URL

For my project I am sending the HTML value from one text editor. For that I had set the character set to UTF-8. Here I am sending value through URL. In the text editor I am Providing the facility of changing the color of text.

Now when I change the color of text then on the servlet page where I had to get those values and to store it on database, am not able to get the entire value from URL. I am just getting the value before '#' symbol.

Ex.
I am sending following HTML value from URL.

Add Your Text Here.

and while getting this value on servlet I got URL:

localhost:23056/OUMS/recent_event?text=%3Cp%3EAdd%20Your%20Text%3Cfont%20class=%22Apple-style-span%22%20color=%22#FFCC33%22%3E%20Here.%3C/font%3E%3C/p%3E%20%20&col_id=c1

And when I display the value of 'text' variable then it shows:

Add Your Text

jaypatel711
Newbie Poster
3 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

simple solution to this problem is use ajax for updating your page.
send your html code on some event.It will definitely works.

malav42
Newbie Poster
1 post since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

Malav:

I am sending the HTML values on click event via javascript though it creates problem.....

jaypatel711
Newbie Poster
3 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

Thanks all for your valuable suggestions I had tried URLEncoding but still it was causing problem in safari browser where it was working perfectly with mozila.
So I find another way that now I am sending the value through hidden variable to servlet and now it is working perfectly.

jaypatel711
Newbie Poster
3 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: