Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

RE: Feature request: Server level character encoding instead adding
afilter for each web application.

lovetide

2006-12-15

Replies:


Thanks a lot Chuck, the global web.xml is very good stuff. I misunderstood
the function of the global web.xml before, I thought it was only applied
when a web application does not have a web.xml before.

I read the introduction message in the web.xml file after i saw your hint.
now I put the SetCharacterEncoding filter config into the global web.xml,
and delete the SetCharacterEncoding filter config from each web application,
it works ok, thanks again !


Caldarale, Charles R wrote:
>
>> From: lovetide [mailto:lovetide@(protected)]
>> Subject: Feature request: Server level character encoding
>> instead adding afilter for each web application.
>>
>> 1. Repeated configuration is too bored: If Tomcat supplied
>> that feature, we can delete the same config from each web.xml
>
> Have you tried putting the filter config into the global
> CATALINA_HOME/conf/web.xml rather than that of each individual app? It
> should be picked up automatically by all apps then. Not a true
> solution, but it should decrease your workload.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
>

--
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.