Re: Charset (Struts and Velocity)

2005-02-14 Thread Shinobu Kawai
Hi Nathan, the VelocityViewServlet (largely in the interest of compatibility with VelocityServlet) does take the output.encoding property into account, but only if there is no charset specified within the default.contentType property. Didn't know that. Maybe it needs to get it

Re: Charset (Struts and Velocity)

2005-02-14 Thread Shinobu Kawai
Hi Markos, It's all Java stuff. Java stores data in memory as Unicode, so everything going into Java must be converted into Unicode. Currently, there is no way Java can tell whether a file is ascii or Greek or Japanese or whatever. So, you have to Unicode escape the files.

Re: lost '#'s inside #literal()/#end

2005-02-14 Thread Shinobu Kawai
Hi Geoffrey, I am using VTL (with VPP) to customize a portion of a Perl script. Since Perl code has a lot of dollar signs, I am using #literal()/#end to prevent Velocity from processing most of the file. What I find is that single '#' characters that are not followed by alpha text are

Re: Charset (Struts and Velocity)

2005-02-14 Thread Nathan Bubna
On Mon, 14 Feb 2005 01:01:23 -0800, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi Nathan, the VelocityViewServlet (largely in the interest of compatibility with VelocityServlet) does take the output.encoding property into account, but only if there is no charset specified within the

Re: Charset (Struts and Velocity)

2005-02-14 Thread Shinobu Kawai
Hi Nathan, no, i don't think it's documented anywhere. any good idea for where such a note should go? I would definitely want one in the VVS javadoc and/or view tool top page. wanna make a patch? :) I'll file a bugzilla issue for you. ;) ## I'll make the patch if I have some

graphs using velocity

2005-02-14 Thread prasad neo
Hii all Can anybody tell me way to generate graphs using velocity. In my project i need to generate all types of graphs using my database I am using Turbine framework and torque for database and velocity as template engine. so please help me --- Shinobu Kawai [EMAIL

Re: graphs using velocity

2005-02-14 Thread Shinobu Kawai
Hi prasad, Can anybody tell me way to generate graphs using velocity. In my project i need to generate all types of graphs using my database I am using Turbine framework and torque for database and velocity as template engine. What kind of graph did you have in mind? If the

Re: graphs using velocity

2005-02-14 Thread Will Glass-Husain
Hi, I have a Velocity based web application that includes graphs. I don't use velocity to generate graphs, I use a third party graphing app. My web page includes a img tag with a special URL which displays a JPEG or GIF graph. There's a couple of different libraries that can generate the

Re: graphs using velocity

2005-02-14 Thread prasad neo
thanks Will Glass-Husain. I will try jfree tool. ok bye --- Will Glass-Husain [EMAIL PROTECTED] wrote: Hi, I have a Velocity based web application that includes graphs. I don't use velocity to generate graphs, I use a third party graphing app. My web page includes a img tag with

Re: graphs using velocity

2005-02-14 Thread Will Glass-Husain
PS. One nice way Velocity can help with graphs is through macros. If you end up with a long complicated img url to generate a graph, abstract this with a macro. Our Velocity-based system has a number of graph related macros.

Re: graphs using velocity

2005-02-14 Thread prasad neo
I have seen these graphs but where i will get these macros, is it inbuild in velocity engine? or i have to embeed it from outside. how to build these varibles . --- Will Glass-Husain [EMAIL PROTECTED] wrote: PS. One nice way Velocity can help with graphs is through macros.