• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAAS - security - Error page  RSS feed

 
alan kent
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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 ???
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!