On 4/16/07, Charlie Rehor <[EMAIL PROTECTED]> wrote:
We want to upgrade to Struts2, but as far as we can tell, the latest version of Velocity Tools calls Struts1.2 to handle calls to Tiles, which obviously breaks. For example, $tiles.getAttribute() calls the Velocity TilesTool, which always fail as it then calls Struts1.2 classes.
yeah, VelocityTools 1.x currently only has support for Struts 1.x. Work has begun on VelocityTools 2.x, but it may be some time before a release and we're not sure how/if we'll integrate support for Struts2. I do plan to implement a new TilesTool based on the new, standalone Tiles 2 project. We don't even have a beta or GA release of Tiles 2 to build against yet, and my time is limited. Others are welcome to get started now though...
So, the question is, can you use Struts2, Velocity, and Tiles together right now?
I'm not sure. If you can, it's not with code in VelocityTools yet. If there is a way to use Tiles with Velocity in Struts2, you might have better luck getting tips on that from the Struts2 user list ([EMAIL PROTECTED]). Struts2 builds in support for Velocity itself, so they may have some directives or macros or tools that can help you there, or at least tips to get you started on building it yourself.
And if so, can you point me to documentation that describes how to call Tiles from a Velocity file?
I'm not aware of any, but if you do find some from the Struts2 folks, i'd be curious to see it too. :)
Thanks much, Charlie Rehor --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
