• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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 ???
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic