On Mon, 02 Oct 2000, you wrote:
> Hi
> 
> I have the error.wm set as my WebMacroSiteError screen. How do I get this screen to 
>properly display exceptions? 
> 
> It currently simply displays the "ERROR" heading and nothing else.
> 
> Regards
> 
> Chris

If you look in
turbine/src/java/org/apache/turbine/modules/screens/WebMacroSiteErrorScreen.java the 
following
 lines put the error info into the context:
 
context.put("processingException", data.stackTraceException.toString()); 
context.put("stackTrace", data.stackTrace);

So in your error.wm template, you can just access this information like in the
following example:

<!--start of example template here -->
<b>Something bad happened!!</b>
Here is the exception:<br>
$processingException

Here is the stacktrace:<br>
$stackTrace

<!-- end of example template -->
-- 
Peter Recore
Software Engineer
Digital Media on Demand


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to