I've been thrown into maintaining a Java web app even though I have no Java experience and right now my biggest problem is not being able to properly test on a dev server, so I am putting up some test pages on the live server, but there is a default error page that prevents me from seeing what is causing the error.
Is there any way in JSP to prevent the default error page from appearing on a per-page basis? I'd like to see he error message on one page without affecting the whole site. It's a Websphere 5 on Linux server.
Thanks. Now, how would I make mycustomerrorpage.jsp display the compilation error? I know my local Tomcat install does this by default, which makes it easy to go directly to the problem.
page directive is used to have a custom error page at runtime. If your page is not compiled when you call your JSP first time, then you may want to compile your JSP to check compilation errors when you are done with your coding, before you deploy your JSP page for use. Tomcat allows you to do that. Please refer to Tomcat documentation for pre-compiling JSP. Refer to jspc tool included with Tomcat or using ant to precompile JSp pages.