would it be possible to acomplish this in a staged environment in other
words
preprocess all your code with Velocity Macros from Ant script
http://vpp.sourceforge.net/
this way you can see your jsps and servlet code
then feed the vpp output to struts2?
M---
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "Michael" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Tuesday, April 17, 2007 11:04 AM
Subject: Velocity in Struts2
Hello,
I have scratched my head and googled this for hours to no avail, so maybe
you folks can give me a hand.
I am trying to migrate a Struts1 site to Struts2 (from maven, struts-core
2.0.6). So far everything is fine, except for Velocity (verison 1.4). The
Action is being called and returning successfully, the correct Velocity
template is being loaded and parsed, but the Action is no where to be
found
for the Velocity template. In http://cwiki.apache.org/WW/velocity.html it
states that the Action's properties will be present for the template
context, along with other help variables (i.e. $stack, $action, etc ). My
Velocity template has nothing, just $struts.valueStack in the request
attributes.
Seems like there is a final step missing that processes the Action into
the
Velocity context?
The entire site is already using Velocity, so migrating to Freemaker is
not
really an option at this time.
thanks,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]