Re: Application Resources and TextTool

2005-02-10 Thread Markos Charatzas
Hello Nathan, Thank you for your prompt and detailed response. Yeah its true that I use request.setAttribute(destinations, destinations) at some point before rendering the template so that what is must be causing the problem. So...does that mean that I have to keep a record of every possible

Re: Charset (Struts and Velocity)

2005-02-10 Thread Markos Charatzas
Hi Shinobu, #* Actually, the output.encoding doesn't matter unless you're using VelocityServlet or Anakia. ;) Yeap you are right...it must have been there since we migrated to VelocityViewServlet :) Please refresh my memory. Was there a way to specify content type in resource files? I

RE: VelocityViewServlet Differences with VelocityServlet

2005-02-10 Thread Steve O'Hara
Hi Nathan, Here's the trace:- java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute(StandardSession.jav a:900) at org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSessi

Re: Application Resources and TextTool

2005-02-10 Thread Nathan Bubna
Yep, that's sure to be the problem. As for keeping record of everything you put in the request, i'm not sure what the best way to do this is. personally, i only rarely put things directly into the request myself. i mostly use tools to access my request scoped data. those are easy enough to

Re: Charset (Struts and Velocity)

2005-02-10 Thread Nathan Bubna
disclaimeri've only halfheartedly read this thread and personally never use non-default charsets/disclaimer have you tried setting the default.contentType property that the VVS looks for? e.g. default.contentType=text/html; charset=ISO-8859-1 i'm half-doubting that's the problem, but it

Language Tranlation Problem

2005-02-10 Thread Gagan 007
HI all, PLease solve this problem I Have some XML file, which contains the template for emails (different xml file for different language). Lets say a Japanese, French and English..XML file with proper encoding... these templates have some velocity variable that would be populated at

Re: VelocityViewServlet Differences with VelocityServlet

2005-02-10 Thread Nathan Bubna
On Fri, 11 Feb 2005 01:09:10 -, Steve O'Hara [EMAIL PROTECTED] wrote: Hi Nate, Thanks for your explanation, it makes sense, but it does raise a couple of questions. a) It sounds as though the search for any Velocity variables that are not defined in a template will cause this error

Re: Charset (Struts and Velocity)

2005-02-10 Thread Shinobu Kawai
Hi Markos, Please refresh my memory. Was there a way to specify content type in resource files? I thought they were just PropertyResourceBundle files. I meant charset, thanks for pointing that out. Question marks usually means that the charset converter couldn't find the suitable

Re: Language Tranlation Problem

2005-02-10 Thread Shinobu Kawai
Hi Gagan, I Have some XML file, which contains the template for emails (different xml file for different language). Lets say a Japanese, French and English..XML file with proper encoding... these templates have some velocity variable that would be populated at runtime... (and email is

Re: velocity and JET (java emitter templates)

2005-02-10 Thread Shinobu Kawai
Hi Mike, Thanks for the report. I'm sure it will be of value to other people who will consider the template engines in the future. ## Somebody might want to make an xdoc/wiki page for this. :) Sorry, I don't know anything about JET, but I was wondering if you could share with us what you