Thanks for the response.

I tried many variations. Nothing works for me (running linux,
jdk1.5.0_01).

I also added an error-page clause to the tomcat web.xml as well as my
webapp. It always jumps to the default page.

Here's what mine looks like. Wish it worked. :(


<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
    version="2.4">

.....stuff.....

        <error-page>
            <error-code>401</error-code>
            <location>/portal/nologin.jsp</location>
        </error-page>    
</web-app>

On Sun, 2005-03-06 at 09:36 -0800, Chuck Williams wrote:

> Darren Govoni writes (3/6/2005 7:16 AM):
> 
> >Hi,
> >  I tried adding.
> >
> ><error-page>
> >  <error-code>401</error-code>
> >  <location>/error.jsp?type=401</location>
> ></error-page>
> >
> >to my web.xml page (it was in the proper location, etc.) but my server still 
> >produces the default error
> >page. When I tried on my earlier 5.0.25 tomcat, it wouldn't even bring up my 
> >resources, which was weird.
> >
> >Anyway, I tried various codes and locations. Nothing worked.
> >
> >Any tips on this?
> >  
> >
> As location takes a war-path and not a url, I suspect the "?type=401" is 
> your problem.  This mechanism works fine for me when just using paths in 
> the war file.
> 
> Chuck
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to