Seems like a JSP-based custom tag would be the easiest, but I don't
actually know what your template requirements are, so it's tough to
say.

What's the use-case?

Dave

On Fri, Apr 15, 2011 at 11:13 AM, Biesbrock, Kevin
<biesbrock.ke...@aoins.com> wrote:
> There seem to be plenty of documents outlining how to include a jsp in a
> velocity template, but not the other way around.  I am having a
> difficult time finding information on how to include a Velocity template
> in a JSP.  I recognized the s:component tag could work, but my templates
> are not currently in my template (or "theme") folder and I feel like
> they don't belong there because they are specific to my app, not the
> chosen theme.  I don't have enough time with the schedule of our
> application to go back and convert all of the JSPs to Velocity
> templates.
>
> So one solution I thought of would be to create an action that returns
> the Velocity result...but I don't really know how I feel about this
> approach:
> <action name="getTemplate_*">
> <result type="velocity">/WEB-INF/myVelocityTemplates/{1}.vm</result>
> </action>
>
> I would appreciate any guidance on this.
>
> d[-_-]b \m/
> Beez
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to