velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <>
Subject Re: Is it possible to embed JSP tags and lib into vm page?
Date Wed, 05 Mar 2008 18:29:57 GMT
On Wed, Mar 5, 2008 at 7:09 AM, Christopher Schultz
<> 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:

>  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:
For additional commands, e-mail:

View raw message