File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Exception handling in struts tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception handling in struts tiles" Watch "Exception handling in struts tiles" New topic

Exception handling in struts tiles

Chris Kairns

Joined: Dec 28, 2009
Posts: 6

I am using version 1.1 of struts tiles in my JSP pages. But I am unable to redirect the page to an error page when an exception occurs in a tile and the stack trace gets printed in that tile section on the page. I tried all standard JSP options setting flush value on tile setting buffer size on page , but in vain. Except handling the exception programmatically, none of the options seem to work. Does anybody know how to handle exception in a tile non programmatically and redirect it to an error page?

Thank you very much !
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 544
Hi there,
I had faced similar issue earlier ~3-4 years back. You have to handle it programmatically and redirect/forward the user to error page.
I remember I had email exchange with Cedric Dumoulin ( Author of tiles framework) back then. If I could dig it out I will post it here.


I agree. Here's the link:
subject: Exception handling in struts tiles
jQuery in Action, 3rd edition