Struts Velocity

2005-02-08 Thread Markos Charatzas
Hi all, Im just trying to get my head around this. Struts is meant to work with actions. You create the mappings of the actions in the struts-config.xml and define things like action handlers, forwards, etc. Suppose I use Velocity to render the view. Is there a standar place in struts or

non-HTML output - PDF and OpenOffice

2005-02-08 Thread Peter Harrison
Just thought people would be interested: We are using Velocity to create PDF documents. The approach we used combines velocity, XSLT transforms and the FOP engine to generate documents dynamically. I'm not sure if this use of Velocity is unique. We have also done something similar with

Re: Struts Velocity

2005-02-08 Thread Peter Harrison
On Tuesday 08 February 2005 21:19, Markos Charatzas wrote: Hi all, Im just trying to get my head around this. Struts is meant to work with actions. You create the mappings of the actions in the struts-config.xml and define things like action handlers, forwards, etc. Suppose I use Velocity

Re: Struts Velocity

2005-02-08 Thread Markos Charatzas
Thanks for your input! The easy way is to use the Velocity Servlet in velocity tools. By mapping say any vm file to the servlet you can process vm files. And yes, putting the data in the request or the session will make it available to the view. There isn't anywhere else really. Yeah thats

RE: non-HTML output - PDF and OpenOffice

2005-02-08 Thread Assia Aouat
Hi I am very interested on that. It will be good if you could explain be how to do it? Thank you. -Original Message- From: Peter Harrison [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 7:19 AM To: Velocity Users List Subject: non-HTML output - PDF and OpenOffice

Re: non-HTML output - PDF and OpenOffice

2005-02-08 Thread Carfield Yim
I guess it just have a XML like template, generate XML like HTML, and then process it with FOP, nothing magic... right? On Tue, 8 Feb 2005 11:12:10 -0500, Assia Aouat [EMAIL PROTECTED] wrote: Hi I am very interested on that. It will be good if you could explain be how to do it? Thank

RE: non-HTML output - PDF and OpenOffice

2005-02-08 Thread Assia Aouat
Do you have an example? -Original Message- From: Carfield Yim [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 11:25 AM To: Velocity Users List Subject: Re: non-HTML output - PDF and OpenOffice Importance: Low I guess it just have a XML like template, generate XML like HTML,

Velocity logo ideas / poll

2005-02-08 Thread Tim Colson \(tcolson\)
Howdy Gang - Mr. Will suggested website and doc changes on the Velocity Dev list. I replied with more ideas that I hope might make the site easier to read/print. One idea - shrink the Velocity logo so the website will view and print a little bit easier (Firefox will auto-scale printing, but

RE: non-HTML output - PDF and OpenOffice

2005-02-08 Thread Peter Harrison
On Tue, 2005-02-08 at 14:46 -0500, Assia Aouat wrote: Do you have an example? This is part of a class that deals with all kinds of output, but this method is specifically for OpenOffice. fullPath is a class variable representing the template name. In answer to a previous question - no its not

RE: non-HTML output - PDF and OpenOffice

2005-02-08 Thread Assia Aouat
Thank you. -Original Message- From: Peter Harrison [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 3:54 PM To: Velocity Users List Subject: RE: non-HTML output - PDF and OpenOffice Importance: Low On Tue, 2005-02-08 at 14:46 -0500, Assia Aouat wrote: Do you have an example?

Re: Struts Velocity

2005-02-08 Thread Peter Harrison
On Tue, 2005-02-08 at 17:54 +0200, Markos Charatzas wrote: I didnt put it correct. I dont mean that the LocaleAction renders the page, I mean first calling LocaleAction *and* then rendering the page. So the question is when to call request.put(). At the moment I found a solution by

Re: Struts Velocity

2005-02-08 Thread Nathan Bubna
just to make sure you guys know, the VelocityServlet is deprecated and should be removed following the release of Velocity 1.5. it's replacement is the VelocityViewServlet in the VelocityTools project. so if you have ideas for improvements or contributions, be sure to make them regarding that

Re: non-HTML output - PDF and OpenOffice

2005-02-08 Thread Carfield Yim
as when editing the documents you can't put velocity between XML tags. In some cases we have manually modified the content.xml in order to get certain effects in velocity. That surprise me, what do you mean put velocity between XML tags.? You mean Velocity variable? Or you can't include other

Re: Struts Velocity

2005-02-08 Thread Markos Charatzas
Peter, you are 100% right that it should belong there. Actually the way I see it is that as ActionServlet handles Actions so VelocityViewServlet should handle Views! :) Perhaps we will implement it ourselves actually since we are moving into the Chinese market this year. Well that is why