implement dynamic filter

2009-07-22 Thread lanxiazhi
,and set the ServletResponse's character encoding accordingly. Is that possible ? If possible ,how to decide the charset quickly ,without slowing down the server? thanks lanxiazhi

Re: Preventing access to directories?

2009-07-22 Thread lanxiazhi
Here is one alternative: use a servlet that will handle all the illegal accessed files by define corresponding servlet-mapping in web.xml. eg.mapping ErrorServlet to /code dir,and return error code SC_FORBIDDEN (403). 2009/7/23 Andre-John Mas aj...@sympatico.ca On 22-Jul-2009, at 22:36, Hassan

Re: is there any difference?

2009-07-22 Thread lanxiazhi
hello,I found this in the servlet specification: • The deployment descriptor lists the following welcome files. welcome-file-list welcome-fileindex.html/welcome-file welcome-filedefault.jsp/welcome-file /welcome-file-list • The static content in the WAR is as follows /foo/index.html

Re: providing downloading functionality for a file which is on disk

2009-07-21 Thread lanxiazhi
I don't have a linux at hand to prove this idea: if you're deploy your app in linux ,maybe you can use a soft link to that directory ,and put the link under your webapp's dir. hope that will help. thanks. lanxiazhi 2009/7/21 Kham Mulman kmul...@gmail.com you can. for instance, File file

Re: Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE: A new development

2009-07-21 Thread lanxiazhi
I wonder why you want to install tomcat as a service.In my mind,java is green software,and I always download a .zip or .gz file,and get it run in a specific folder,I think that will help to easy manage things. hope no bother. thanks. 2009/7/22 Varuna Seneviratna varunasenevira...@gmail.com