Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Replace special characters like &, ?, =

807589Aug 28 2008 — edited Sep 4 2008
Hi,

I am using JSP; I have a text area and an update button in my form; whenever we enter anything in the textarea and click on update button the contents get saved in the log file. But my concern is when I try to enter any link it throws an exception "A Error has been caught" and the link does not get updated.

I have tried to replace the special characters using the replaceAll(), tried to read each character and replace the special character whenever it comes. But it gave me the same error.

Kindly help me with this.

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 2 2008
Added on Aug 28 2008
4 comments
495 views