Re: [Actionframework-users] Exception catching
Status: Inactive
Brought to you by:
ptoman
From: Petr T. <Pet...@pi...> - 2003-07-08 08:59:28
|
> Is there some possibility to also catch these view-related exceptions? > Of course it is somehow possible to force Velocity to be silent, but=20 > some kind of support from the framework would be nice. To load templates, AS calls getTemplate() method, which propagaes any=20 exception wrapped inside TemplateException. An exception ocurred during template rendering is be passed to ActionServlet.error() -=20 like: as.error(context, "Velocity error", exception) - where you can handle it. =20 > I noticed similar issue was once mentioned on this list, but I am not > sure if some solution has been proposed. It was Mark's request, right? It was solved by error() method. Perhaps it would be useful to react also by <on-exception> elements. > BTW I noticed some progress in roadmap document, is there some new > release planned? I hope AS 0.95beta will be released in August. There is still a lot=20 of work on rewriting ActionRuntime, but the rest of todos shouldn't be so much trouble. -Petr [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=3D22957959 ] |