This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes tiles2 - access denied page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tiles2 - access denied page" Watch "tiles2 - access denied page" New topic
Author

tiles2 - access denied page

vivi pendler
Greenhorn

Joined: Jan 20, 2009
Posts: 1
Hi,
i'm using spring 2.5, tile 2.0.6 and spring-security 2.0.3 (i can't get any answer from spring forum, but the question is about tiles)

i want to display a custom access denied page when an authenticated user tries to access a page without
the role needed,for now i get a white empty page.
log:
org.apache.tiles.impl.BasicTilesContainer: - Render request recieved for definition 'EditProduct'
org.apache.tiles.impl.BasicTilesContainer: - Access to definition 'EditProduct' denied. User not in role '[ACT_TEST_ACCESS_DENIED]

which is great - but now i would like the custom accsess denied page to be displayed.
my configuration:

tiles-servlet.xml:


definitions.xml:


BasicTilesContainer checks permission, but returns when user in unautherized - what's the best way to change that
behaivaor?

 
 
subject: tiles2 - access denied page