Re: TemplateExceptionHandlers

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Monday, August 30, 2010, 7:35:49 PM, marc2912 wrote:

>
> I am using the configuration object's method setTemplateExceptionHandler to
> use a custome Handler.  I was wondering if, when an exception is caught by
> the handler, there is an easy way to do a redirect.  I don't want a page to
> finish rendering if there is an error but just to log it and redirect to a
> 500.  

FreeMarker itself surely allows that, since it doesn't deal with HTTP
or servlets. So FreeMarker itself (the "core") gives full control
regarding these things. Question is, what freamework you are using
FreeMarker in.

> Thanks

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.