I'm working on a legacy system that is built on jsp. In one of the jsps
I need to include a velocity template. The template does not require
access to any dynamic data.
Struts lets you use Velocity instead of JSPs as an option. Using JSPs
*and* Velocity isn't an out-of-the-box type of
Check back in the list; we just discussed this topic within the last few days.
Dave
On Tue, Apr 19, 2011 at 1:55 PM, Eric Lentz eric.le...@sherwin.com wrote:
I'm working on a legacy system that is built on jsp. In one of the jsps
I need to include a velocity template. The template does not
From: Dave Newton [mailto:davelnew...@gmail.com] Tuesday, April 19, 2011
2:18 PM
we just discussed this topic within the last few days.
If you're referring to my previous question, that was never resolved.
It was left with:
From: Dave Newton [mailto:davelnew...@gmail.com]
Do the templates
On Tue, Apr 19, 2011 at 2:34 PM, Biesbrock, Kevin wrote:
There was no response to that and I didn't want to specifically call you
out for a response because I recognize that you're a developer, too, and
are busy with your own shtuff.
The response was embedded/implied; if there's no data model
From: Dave Newton [mailto:davelnew...@gmail.com] Tuesday, April 19, 2011
2:41 PM
The response was embedded/implied; if there's no data model at all then
it doesn't matter if you have a simple
tag around template rendering or within the action itself. Going
through an entire request process is
On Tue, Apr 19, 2011 at 2:50 PM, Biesbrock, Kevin wrote:
One option, I gather, is the same
thing Eric suggested -- render the template in the action class and put
the result into a string for the view to pull using s:property.../.
Is that correct?
Yeah, although I'd just use JSTL ${whatever}
Now we're narrowing in:
v:renderTemplate template=theTemplate.vm/
Do I need to create my own taglib for 'v'? There seems to be little
documentation with regard to this for Struts2 and Velocity. But this is
the very thing I would like to accomplish. Or perhaps I'm overlooking
it; could you
You'd create a tag; there aren't any out-of-the-box in S2, although
there might be a third-party taglib that'd do it. It's really, really
easy.
Dave
On Tue, Apr 19, 2011 at 3:03 PM, Biesbrock, Kevin
biesbrock.ke...@aoins.com wrote:
Now we're narrowing in:
v:renderTemplate
From: Dave Newton [mailto:davelnew...@gmail.com] Tuesday, April 19, 2011
3:06 PM
You'd create a tag; there aren't any out-of-the-box in S2, although
there might be a third-party taglib that'd do it. It's really, really
easy.
Okay. Just not something I've done previously. No better time to
9 matches
Mail list logo