java - Tomcat ignores my custom error servlet/page -


I have a problem that makes me go crazy It is not certain that this is a bug in tomacat or just my plain stupidity But here goes.

I have a custom error servlet set up, some setup works, and if I simulate to run an uplet or 404 errors etc., the error page is displayed mainly, then The response code is 500 or 400 ... well, it works.

But the above setup is not a suite to me and I have to move forward in a JSP (I should run my operations in the servlet, insert appropriate data within the scope of the request and forward it to the JSP to display).

In this way, do my doPost / doGet method in the servlet:

  getServletContext (). GetRequestDispatcher (...). Forwarded (request, feedback);  

The new setup works up to a point. That is, the servlet runs and for further JSP executes, JSP executes (I have logged in instructions and executes them), but in the browser I get the default tomcat error page, not my JSP content .

I also have the and lt;% @ in my JSP errooppage = "true"%> but it does not matter whether it exists or not, after which JSP is its The response has disappeared, and I get the default tokant error page in the browser.

Why does not this work for anyone? I am going to Krezazzeziyyyyi!

Thank you all!

P. s. I am using Tomcat 5.5.26.

Most likely that only one exception has been thrown. Is the custom error page showing exception details? If not, you checked the server code in the / log folder to see if an exception occurred or not? If you display $ {exception} (when in error page = "true" error page), what does the error page say? Note that isErrorPage = "true" should not go into "normal" JSP files.


Comments