This info is quite helpful. Thanks a lot Christopher Schultz-2 wrote: > > To whom it may concer, > > m_kk wrote: >> wooow velocity core is different from velocity struts. > > Well, not really. Everything is the same, except that the Struts folks > have introduced a rich set of macros that support their framework. > > If you want a table in Velocity, you don't have to use any special tags > or whatever: just write the HTML as you usually would. The same is true > for any other HTML tag (or whatever output you are trying to generate). > > The Struts "tags" (named so because they support JSP and Freemarker, > both of which use more tag-oriented syntax) should be the same no matter > which templating language you use (JSP, Freemarker, or Velocity). The > Velocity syntax is simply a bit different because of the way that > Velocity does things (i.e. it is /not/ tag-oriented, but rather > macro-oriented). > > I think this page (and friends) would be helpful to you: > http://struts.apache.org/2.0.11.2/docs/tag-syntax.html > > Specifically, read this page and continue until you get to the > Velocity-related stuff. You may be uninterested in the JSP/Freemarker > coverage, but it's worth reading to understand how similar the tags are > (and how to read the official documentation, which always uses JSP > syntax for examples). You also might be swayed into using JSP or > Freemarker if you like their style better. > > The real meat start here: > http://struts.apache.org/2.0.11.2/docs/velocity.html > > Finally, the insertion of the "extra" <td> elements is from the Struts > macros -- not Velocity. You want to read more about the "look and feel" > (or whatever they call it... it's been a while since I reviewed Struts 2 > in Action) options... forms, specifically, have a look and feel applied > to them so that you don't have to add all those tags yourself. Your > templates will be a lot cleaner, and you can more easily switch between > looks-and-feels rather than doing massive search-and-replace. > > Hope that helps, > -chris > > > >
-- View this message in context: http://www.nabble.com/Velocity-reference-tp19415249p19461358.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]
