File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirect to custom access denied page on Http form authorization

 
Roshan Lobo
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using form http authentication and authorization to secure my resources. My authorization is configured in web.xml. I wanted to know if i can redirect to my custom access denied page whenever an unauthorized user tried to access a secured resource>

Thanks in advance,
Roshan....
 
Amit Ghorpade
Bartender
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you can based on the error code, refer to error page in web.xml.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic