• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAAS - security - Error page

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using jboss-3.2.1_tomcat-4.1.24 and I am using JAAS authentication
In web-xml, when an user is not authorized to access some page, I am using the following code

<web-app>
...
<error-page>
<error-code>403</error-code>
<location>/NotAuthorized.jsp</location>
</error-page>
...
</web-app>

But the problem is that it doesn't work because it still shows the default error page. It should redirect to the page "NotAutorized.jsp". Does somebody know if it works in tomcat ??? Or is there another way to override the custom error page ???
reply
    Bookmark Topic Watch Topic
  • New Topic