Hello Anders, 

You can implement a Filter :

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/javax/servlet/Filter.html

that would be executed either before or after (or both) the response is created, with 
traditional servlets/jsp.

You could for example check out the URL in the request, and redirect the request to 
the error-page you want to use for such 404.

Hope it helps
- reynir
[EMAIL PROTECTED]




> -----Original Message-----
> From: Anders Gunnare [mailto:[EMAIL PROTECTED]] 
> Sent: 18. nóvember 2002 20:38
> To: [EMAIL PROTECTED]
> Subject: Scanning the URL
> 
> 
> Hello World,
> 
> I'm intrested in scaning the URL in my Tomcat-server 4.1.12 
> before the server is making a response. Depending what the 
> URL contains the server shall do something with that.
> 
> Can I do that?
> 
> For example,
> a request can look like
> http://myserver/abc/index.jsp
> I don't have anything on my server which name is 
> abc/index.jsp At this time the server shows an error-page. 
> But I would like to show an home-made error page which says something 
> about the content of the UTL.
> 
> For example, in MS IIS and MS ASP there is a file global.as which a 
> request is going in one time per session. Here is it possible 
> to check 
> the URL or whatever I want.
> 
> Best regards
> Anders Gunnare
> Frontec
> Sweden
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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

Reply via email to