Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

JSP form input with double qoutes, Java cant see the qoutes

843838Jun 14 2007 — edited Jun 15 2007
I am having an intermittent problem with double qoutes in a form input.

Sometimes the qoutes are recognized and they show up in the corresponding business code, sometimes they do not.

I have done this to test the issue:

I can print the input value in the JSP and the corresponding Action.

Test 1 - on screen displays "search stuff"
But Java sees search stuff (notice no qoutes)

Test 2 - on screen displays "search stuff"
But Java sees "search stuff"

If I copy the html into word, the qoutes appear differently. Indicating to me that they are of different ASCII or Encoding origin.

How could this have happened?

I cant seem to consistently make the qoutes unreadable by Java. It comes and goes.

What can I do about it?

My browser and my web server are both set to 8859-1 (Wester).

Message was edited by:
meconlin4192

Message was edited by:
meconlin4192
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2007
Added on Jun 14 2007
5 comments
177 views