Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception handling in struts tiles

 
Chris Kairns
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


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
Posts: 544
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards,
Amoit

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic