aspose file tools*
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 Java 8 in Action this week in the Java 8 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?

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tiles2 - access denied page
 
Similar Threads
Not able to render view in Spring 2.5 with Tiles2
[SOLVED] Spring 2.5 and tiles2 : can't get files to render
Spring Tiles, Multiple Controllers
Spring MVC Integration of Tiles Complete Example
Problems while Configuring Tiles in Spring MVC