Merrill Cornish wrote: > I originally had errorPage declarations at the top of all my JSP > pages, which worked. Then I heard about the <error-page> element in > web.xml. So I replaced all of the individual errorPage declarations > with: > > <error-page> > <exception-type>java.lang.Exception</exception-type> > <location>/errorPage.jsp</location> > </error-page> > > in my application's web.xml, and it worked fine. Next I tried > > <error-page> > <exception-code>404</exception-code> > <location>/login.jsp</location> > </error-page> > > to intercept bad URLs and redirect them to the login page. However, > THIS does not work. Bad URLs just get the standard Tomcat 404 error > page as always. I've Googled the problem and found "it doesn't work > for me," "but it DOES work for me," "but it does NOT work for me," and > so on. Is there some secret here? (I'm running 5.0.18.) > > Merrill > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Replace the "exception-code" with the "error-code" tag and you'll be in business.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
