Shailesh Modi wrote:
> Hi All,
> I am working on Struts project and want to know that how can I use
> velocity tag , in stead of
> <bean:message key="query.msg"/> struts tag.
> I want this value to be displayed by velocity tag only.
> I have tried using $message.get("query.msg") , also like
> $message.query.msg . but nothing worked.
> Is it possible to use velocity to access the messages or values , we define
> in struts.properties file ?
>
>
> Please enlighten me on this.
Hi Shailesh,
what you want is possible. A few people have been working on a Struts/Velocity
integration. The equivalent of the tag libs in JSP are view tools
in Velocity. The software is currently pre-release but it is being used in
several projects and seems to do its job. The easiest way to get started is
to grab a nightly snapshot at:
http://jakarta.apache.org/builds/jakarta-velocity/nightly/
(look for file jakarta-velocity-tools-src.tar.gz)
A README is included. I recommend that you first look at the Velcity Struts
examples that are included in the nightly snapshot. See the README on how
to build and deploy the included examples.
The examples are also online at http://www.teamup.com:8080/velstrutsdemo/
I hope this helps to get started. Let us know if you have further
questions (but use the [EMAIL PROTECTED] list, please).
Gabe
--
--
Gabriel Sidler
Software Engineer, Eivycom GmbH, Zurich, Switzerland
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>