All you need to do is configure the Filter - it "wraps" the response in a
UTF8EncodingServletResponse for you. Filters were introduced in the Servlet
2.3 specification and you configure it in your web.xml. First identify the
filter, then map the url pattern for the requests you want it to handle.

 <filter>
    <filter-name>UTF8 Filter</filter-name>
    <filter-class>somepackage.UTF8EncodingFilter</filter-name>
 </filter>

 <filter-mapping>
    <filter-name>UTF8 Filter</filter-name>
    <url-pattern>*.do</url-pattern>
 </filter-mapping>

Niall

----- Original Message ----- 
From: "Hamster" <[EMAIL PROTECTED]>
Sent: Friday, February 25, 2005 9:40 PM


>
> > Here is a good article which covers i18n.
> > http://www.javaworld.com/javaworld/jw-05-2004/jw-0524-i18n.html
>
> > For a full fledged struts application with i18n/l10n support check out
> > workeffort.dev.java.net
>
>
> Thanks, Antony, for the links. But I'm a bit confused by the article in
> the javaworld. They create two classes (UTF8EncodingFilter and
> UTF8EncodingServletResponse) but it is not described how those are
> linked to the application. I guess there must be a declaration in
> web.xml or struts-config.xml, right? Do you know how?
>
>
>
> Regards,
> Bernhard



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to