On Wed, Mar 5, 2008 at 7:09 AM, Christopher Schultz <[EMAIL PROTECTED]> wrote: > Nathan, > > > Nathan Bubna wrote: > > If you are asking whether you can embed JSP markup within a Velocity > > template, then the answer is definitely no. though, there have been > > some efforts to use tags within templates though: WebWork used to > > support using JSP taglibs with templates, though not using the JSP > > markup (i'm not sure about Struts 2 still has this, but it may since > > it used to be WebWork). > > FYI S2 provides its own "tag api" which is available separately through > JSP, FreeMarker, and Velocity. Their tags actually use FreeMarker behind > the scenes to generate the output.
Yeah, i'm not seeing the jsp tag support anymore (could just be missing it, i suppose). The old code is still out there though: https://velotags.dev.java.net/source/browse/velotags/taglibs/src/br/com/usiinformatica/commons/taglibs/velocityWrap/ > This doesn't really allow you to "use" JSP markup (for example) within a > Velocity (or FreeMarker) template... it just lets you choose your > rendering technology and provides a consistent interface across all three. > > As Nathan suggests, you can easily add an instance of an object to the > Velocity "context" (roughly analogous to the "page" context in the JSP > environment) through a variety of mechanisms. The JSP tag library itself > will be worthless to Velocity, unfortunately, because it is to tied to > the JSP environment. > > Hope that helps, > -chris > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]