tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mufaddal Khumri <mufad...@wmotion.com>
Subject Standard error pages ?
Date Mon, 29 Sep 2003 09:30:52 GMT
Hi,

I am using tomcat 4.1.18. I want to be able to redirect a user to a  
standard error page 500 when someone tries to access a .jsp in my  
webapp. Is there a standard mechanism to do this in tomcat or will i  
have to do:

       
response.sendRedirect(response.encodeRedirectURL("/mywebapp/error/ 
error500.jsp"));

instead is there something like:

     response.setError(500);
     response.sendRedirect(); // This would result in a standard 500  
page being displayed instead of the error500.jsp page
                              // i write.

Any pointers / code snipets ?

Thanks.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message