This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes How to get Hebrew text from JSP page correctly? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "How to get Hebrew text from JSP page correctly?" Watch "How to get Hebrew text from JSP page correctly?" New topic
Author

How to get Hebrew text from JSP page correctly?

Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Hello friends
I am facing a problem saving Hebrew text from JSP page,
The input is coming from Spring mvc form in a JSP page,
Jsp pase has a utf-8 declaration , It was saved encoded in utf-8, app is running on tomcat 7,
The data submitted to a Spring controller, The problem is that the text is arriving to the controller as Gibberish.

See the "name" field of the Driver element here:

The "description" field is hebrew text I add using the debugger.

Here is the controller code:


Here is the Jsp:


Please advise, Thank you!
Sharon whipple
Ranch Hand

Joined: Jul 31, 2003
Posts: 294
Problem resolved using simple filter see:
http://nirlevy.blogspot.com/2009/02/utf8-and-hebrew-in-tomcat.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get Hebrew text from JSP page correctly?
 
Similar Threads
Spring model attribute is not populating values
Getting error when submitting form using SpringMVC and REST
Help submitting forms via SpringMVC and RESTful Web Service
Unable to call Controller method after form submission using Spring MVC 3
Problem with validation example