I have to say that I think you may be trying to run before you can walk with this (too much Velocity? :)
My suggestion would be to start simple - write a standalone application that just has a main method that creates and configures a VelocityEngine then uses it to merge a context with a template file. The idea is to get familiar with the basics - how to configure a resource loader, how to write a basic template. From there try some other things, like passing POJOs as context values and calling their methods from the a template. Try putting your template into a JAR and using the ClassPathResourceLoader. Add the toolbox to the mix to get a feel for how it works. You get the idea. When you're comfortable with using Velocity like this, then you'll be way better prepared for the more advanced stuff like using Velocity and Struts side by side (and in my experience this combination blows the socks off Struts+JSP in terms of performance and maintainability, and to some degree even portability). --Pete m_kk <[EMAIL PROTECTED]> wrote on 09/12/2008 08:15:57 AM: > > Thanks for the resource. Unfortunately none of the examples use velocity > tags. Its quite awkward not to find proper resource and also don't > understand the need of velocity when there is struts tags already. > > The main question which is unanswered is why does velocity introduce its own > <tr> and <td> tags for #slabel,#ssubmit etc. I want to have a table with 3 > columns first with a html label, second with a submit button and third to > display the result. Clearly velocity is limited to basic design and i feel > not worth for designing a good web application. > > > > Nathan Bubna wrote: > > > > http://velocity.apache.org/tools/releases/1.4/struts/ > > > > The VelocityTools binary distribution also comes with a VelocityStruts > > example application that is quite instructive. I'd recommend > > downloading that and dropping the struts.war file in your favorite > > servlet engine and playing around with it. The source code for that > > example is also quite handy, if you download the VelocityTools source > > distribution. > > > > On Wed, Sep 10, 2008 at 11:05 AM, m_kk <[EMAIL PROTECTED]> wrote: > >> > >> Hi, > >> Can any one direct me to velocity-struts tutorials or any document > >> describing velocity tags and elements?. > >> > >> Thanks in advance > >> -- > >> View this message in context: > >> http://www.nabble.com/Velocity-reference-tp19415249p19415249.html > >> Sent from the Velocity - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > View this message in context: http://www.nabble.com/Velocity- > reference-tp19415249p19456786.html > Sent from the Velocity - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
