[prev in list] [next in list] [prev in thread] [next in thread] 

List:       struts-user
Subject:    Re: Can we set the request encoding before populate the params?
From:       "Craig R. McClanahan" <craigmcc () apache ! org>
Date:       2002-12-31 20:30:17
[Download RAW message or body]



On Mon, 30 Dec 2002, xunhong li wrote:

> Date: Mon, 30 Dec 2002 21:54:07 -0800 (PST)
> From: xunhong li <li_xunhong@yahoo.com>
> Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> To: struts-user@jakarta.apache.org
> Subject: Can we set the request encoding before populate the params?
>
>
>  Hi, Can we add a config item to set the request encoding before
> populate the params? It is not convenient to transform the encoding
> every time when we work on Chinese or Janpanese platform. I knew newest
> tomcat support the new servlet API request.setCharacterEncoding().
>

Unfortunately, adding this method call to the standard Struts code would
make us dependent on Servlet 2.3, while the advertised minimum platform
for running Struts code is still Servlet 2.2.

It would not be tremendously difficult, though, for your application to
subclass RequestProcessor to add this feature.  A convenient place might
be in a custom processPreprocess() method.

Craig


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic