This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Similar Threads
Problems while Configuring Tiles in Spring MVC
[SOLVED] Spring 2.5 and tiles2 : can't get files to render
Spring MVC Integration of Tiles Complete Example
Spring Tiles, Multiple Controllers
Not able to render view in Spring 2.5 with Tiles2