Hi all, I would like that my <error-page> was a Servlet, but don't work with Tomcat 4.1 I have a web deployment file with this: <servlet> <servlet-name>ErrorPageServlet</servlet-name> <servlet-class>ErrorPageServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>ErrorPageServlet</servlet-name> <url-pattern>/Error</url-pattern> </servlet-mapping>
<error-page> <exception-type>java.lang.Exception</exception-type> <location>/Error</location> </error-page> If i enter on browser : http://localhost:8080/cert/Error this work fine. But if occur any Exception, the page that is show is a default error page of Tomcat. If i change a location for a jsp page work fine too. How to work with servlet not .jsp? Thanks
in <servlet> you write <servlet-class>ErrorPageServlet</servlet-class> but in <error-page> you have <location>/cert/servlet/ErrorPageServlet</location> the location of ErrorPageServlet in these cases is not the same.
Isaias C. Barroso
Joined: Jan 22, 2002
Thanks Asher, Best Regards
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com