I've recently installed Tomcat 5.0.25. I am having problems directing a jsp page to an error page. This worked fine with Tomcat 4.0. I end up getting an HTTP 500 Internal Server error. Here's the code:
As you can see there is no rocket science here. But I cannot get the error page to show. I just keep getting the IE "This page cannot be displayed" message. If I change the value of the nullString variable to an actual string value, the JSP page works fine. As soon as I change it back to null in an attempt to throw an exception and forward through to the error page it all blows up.
Both JSPs are in the same directory. I have checked the work directory under Tomcat and the java code looks fine and the .class file is created as well.
Any ideas as to what is going on here? As I mentioned earlier on my post, this code works on another machine where I'm running Tomcat 4.1.18.
Cheers. [ July 15, 2004: Message edited by: Wayne Carey ]
Joined: Apr 08, 2004
Well here's the answer .. seems to be a typical Microsoft thing with IE. The work around (fix) to this problem is to turn off the "Show friendly HTTP error messages" option in IE. Navigate to Tools -> Internet Options -> Advanced -> Browsing.