Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes character encoding from jsp->servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "character encoding from jsp->servlet" Watch "character encoding from jsp->servlet" New topic
Author

character encoding from jsp->servlet

dibs dibley
Greenhorn

Joined: Aug 31, 2003
Posts: 13
Hi,
I am having a bit of a problem with japanese character encoding.I have a jsp form which when i submit goes to a validation jsp which forwards the request on to a servlet which enters the data in a database.
Unfortunately when the form information goes from the validation jsp to the servlet something goes wrong and i just get '???' where the character string should be.
If i go directly from the form jsp to the servlet the characters display fine, but unfortunately my bean does not record any of the changes made in the form ( What is the servlet equivalent to: <jsp: property="*"/> .
My 'getAttribute("bean")' just retrieves the info that was already in the form , not the new information I just typed in!

Any one got any ideas? I use ' <jsp:forward page="../dbserv"> in the validation jsp.
Thanks in advance,
dibs
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: character encoding from jsp->servlet
 
Similar Threads
Simple form: inputText does not reset
STRUTS VALIDATOR
Beans and Jsps and Servlets
STRUTS: client-side validation in jsp using DynaValidatorForm
Multipage form validation