This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Redirect to custom access denied page on Http form authorization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Redirect to custom access denied page on Http form authorization" Watch "Redirect to custom access denied page on Http form authorization" New topic
Author

Redirect to custom access denied page on Http form authorization

Roshan Lobo
Greenhorn

Joined: Aug 21, 2011
Posts: 3
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

Joined: Jun 06, 2007
Posts: 2796
    
    9

I guess you can based on the error code, refer to error page in web.xml.


SCJP, SCWCD.
|Asking Good Questions|
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Redirect to custom access denied page on Http form authorization
 
It's not a secret anymore!