File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tiles2 - access denied page" Watch "tiles2 - access denied page" New topic

tiles2 - access denied page

vivi pendler

Joined: Jan 20, 2009
Posts: 1
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.
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:



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

I agree. Here's the link:
subject: tiles2 - access denied page
jQuery in Action, 3rd edition