Can Spring access-denied-handler refer to popup?
Posted
by
Rens Groenveld
on Stack Overflow
See other posts from Stack Overflow
or by Rens Groenveld
Published on 2013-10-17T12:33:11Z
Indexed on
2013/10/17
15:56 UTC
Read the original article
Hit count: 206
java
|spring-security
I am working with Spring Security 3.1.x and have implemented method annotation securities. As I want, when I perform a certain action while being logged in as a used that doesn't have the rights, I get a 403 acces is denied in my console! Perfect!
Now I would like to catch this 403, and give the user a popup with a custom message. I don't want to redirect users to a page saying that they have no rights.
Is there any way the access-denied-handler of Spring can take care of a popup? Or can it only redirect to another page? Maybe there are other options for me?
Thanks in advance!
© Stack Overflow or respective owner