Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Request Encoding

Ulf Liedén

2010-03-15

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi all,

when my struts application receives form entries containing french character
(i.e. é è) they are converted to something else, like é è.

This has probably something to do with how the request is encoded. I've
tried to add

ServletActionContext.getRequest().setCharacterEncoding("UTF-8");

to the action class validate() method, and

<%@(protected)" %>

to the JSP, but this doesn't help. Any suggestions?

Best regards,
Ulf
©2008 gg3721.com - Jax Systems, LLC, U.S.A.