Hi,
you can extends the BaseEngine:
public class MyBaseEngine extends BaseEngine {
@Override
protected void activateExceptionPage(IRequestCycle cycle, Throwable
cause)
{
// do here something!
}
}
Add MyBaseEngine to your configuration-file (here its called
blabla.application)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application
PUBLIC "-//Apache Software Foundation//Tapestry Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_3_0.dtd">
<application name="b2xSale" engine-class="your.package.MyBaseEngine">
<description>BlaBla</description>
<property name="org.apache.tapestry.visit-class"
value="your.package.Visit"/>
<property name="org.apache.tapestry.global-class"
value="your.package.Global"/>
<page name="Home" specification-path="Home.page"/>
// other properties
</application>
And add this to your web.xml
....
<servlet>
<servlet-name>BlaBla</servlet-name>
<servlet-class>de.atron.tapestry.contrib.SpringApplicationServlet</servlet-class>
<init-param>
<param-name>org.apache.tapestry.application-specification</param-name>
<param-value>/WEB-INF/blabla.application</param-value>
</init-param>
<init-param>
<param-name>CSV.encoding</param-name>
<param-value>UTF-16LE</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
....
Hope i could help u.
Rudolf B.
Lindsay Steele wrote:
Is there anyway to get the exception page that tapestry displays on an
exception.
At the moment I intercept the exception and display a custom page to
the user. At the same time I have it send me a mail
that the exception occurred and use my own code to get the cause and
some of the exception. It is not as good as I hoped though.
I was just wondering if there was an easy way to get the detailed
output that Tapestry usually displays so that I can send that in an
email instead - giving me more information about the exception.
Thanks,
Lindsay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]