(Please disregard the earlier post with the same subject)

 

Greetings,

 

I'm using struts 1.2.9 with Tomcat 5.5 and Apache 2.2.

Here's my issue -

I'm looking to create a default error page for my application. One thing you
should know... my application is using tiles. In my web.xml file I've added
the following:

  <!-- The default error page -->

  <error-page>

   <exception-type>java.lang.Exception</exception-type>

   <location>flc.error</location>

  </error-page>

"flc.error" is a template definition for a tile layout. I've created an
intentional error in my struts-config.xml to a jsp file that doesn't exist.
When I try to load the page with the invalid file name, I see the exception
thrown in my logs then I see struts try to redirect to "/flc.error" - which
is, of course, wrong since flc.error is not a file, but a layout definition.
Is there a way to implement a default error page using tiles?

 

Thanks,

 

Darren

 

Reply via email to