tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jürgen Jakobitsch <j.jakobit...@semantic-web.at>
Subject 403 jsp - display required roles
Date Thu, 29 Dec 2011 08:43:45 GMT
hi,

i have a custom 403 error page.
on that page i'd like to display the securityConstraints that apply
to the requested resource.

example :

i have a securityConstraint in my web.xml that says that only users with role "X"
are allowed to view resource "myPage".
when someone tries to access "myPage" without being in the role "X", i'd like to
display "Role "X" is required to view "myPage""

is there a way to access the security constraints defined in web.xml from within
a jsp?

any pointer really appreciated
wkr http://www.turnguard.com/turnguard


-- 
| Jürgen Jakobitsch, 
| Software Developer
| Semantic Web Company GmbH
| Mariahilfer Straße 70 / Neubaugasse 1, Top 8
| A - 1070 Wien, Austria
| Mob +43 676 62 12 710 | Fax +43.1.402 12 35 - 22

COMPANY INFORMATION
| http://www.semantic-web.at/

PERSONAL INFORMATION
| web   : http://www.turnguard.com
| foaf  : http://www.turnguard.com/turnguard
| skype : jakobitsch-punkt

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message