[Stripes-users] UTF8 from form to mySQL

2011-02-04 Thread Daniil Sosonkin
Hi there, So I'm sure there's someone out there who has met this problem and has found a solution, therefore, let me ask the source. We are dealing with an international web platform - many many languages. People submit forms in different languages and it all stored in a mySQL database.

Re: [Stripes-users] UTF8 from form to mySQL

2011-02-04 Thread Janne Jalkanen
Simple solution: declare the accept-charset value on all your forms to be UTF-8 (and *only* UTF-8), then put up a simple Filter in front of your chain which says request.setCharacterEncoding(UTF-8). This should ensure that you get full unicodes to the ActionBean, and then you only have to deal

Re: [Stripes-users] UTF8 from form to mySQL

2011-02-04 Thread Daniil Sosonkin
Thanks, Janne. I got the Stripe's form to refill with a valid value! But ${actionBean.field} won't work now. I have a filter that sets request.setCharacterEncoding(UTF-8); as you suggested. Then I print on my JSP: Last: ${actionBean.test} The action bean and the form are below. So stripes fills

Re: [Stripes-users] UTF8 from form to mySQL

2011-02-04 Thread Philip Constantinou
Daniil -- We're doing all the same stuff and haven't encountered any problems. Here's a few tidbits from our configuration. In our mySQL connector we use: Resource name=jdbc/xxx auth=Container type=javax.sql.DataSource

Re: [Stripes-users] UTF8 from form to mySQL

2011-02-04 Thread Nikolaos Giannopoulos
Janne, Really??? A filter just to set character encoding??? Although I imagine it would work isn't that a little sledge hammer-ish ;-) Why not just put the following at the top of each of your JSPs (or tweak as necessary): %@ page language=java pageEncoding=UTF-8