> From: lanxiazhi [mailto:lanxia...@gmail.com] > Subject: implement dynamic filter > > I have a web app in tomcat ,where exists some .jsp,.vm files, > these files are saved using different encoding(I think).
Why don't you simply fix the encoding the files are stored in? Use UTF-8 to avoid never-ending problems. Your idea of using a filter at run-time to correct sloppy deployments is akin to the kludges in Internet Explorer - a continual source of trouble. - 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.