Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner
Hello. I've searched the archives on this subject, but the nearest I've reached has been some posts about not serving static content. It's a bit of a surprise that no one has asked this before, so sorry if it is a recurrent question. I want Tomcat (4) to execute JSPs as usual, but prevent it

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner
because it is a 404. The default servlet gets any request not assigned to any other servlet. So if the default servlet find the resource, it returns a 404. -Tim Albert Moliner wrote: Hello. I've searched the archives on this subject, but the nearest I've reached has been some posts about

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner
Touché. I don't know why I had not thought of filters for this... Oh, yes, now I know: My initial intention was to return the JSP file contents as if it were a .txt file, and though ServletContext.getResourceAsStream could be used, it involved having to implement the same behaviour as the