Creating objects in template using new keyword

2005-02-28 Thread Ravikanth L
Hi All, I would like to create a object reference in template using new keyword like what we do in java String obj = new String() I need to put RenderTool instance in context and use it to fix some problem. I know that i can put it to context from the java code where the template is being

Trapping template not found error

2005-02-28 Thread Manish
We are using struts + velocity combination and all errors are trapped and handled by GlobalExceptionHandler, however when velocity template is not found (missing or due to any other reason), I see stack trace in the browser - Org.apache.velocity.exception.ResourceNotFoundException How can I

Re: Trapping template not found error

2005-02-28 Thread Florin Vancea
I was experiencing that myself, but at a more controllable rate. I guess you can try to use error-page in web.xml. However, in my experience, the error may appear halfway the page and then there's no escape. The headers have been sent, part of the content was sent (no-one knows how much) and I