You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Manish <pr...@gmx.net> on 2004/10/08 08:21:28 UTC
Velocity with Struts
Anybody using Velocity with struts?
Is there any article/tutorial available for the same? I haven't used struts
in last year or so (just used for a month before that), so not much
comfortable
with struts.
Any help, pointers would be highly appreciated!
TIA,
- Manish
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Velocity with Struts
Posted by Peter Harrison <pe...@nothingbutnet.co.nz>.
On Fri, 08 Oct 2004 19:21, Manish wrote:
> Anybody using Velocity with struts?
> Is there any article/tutorial available for the same? I haven't used struts
> in last year or so (just used for a month before that), so not much
> comfortable
> with struts.
I'm just about to release a framework for using Velocity and Struts. This will
include a "demo" application.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Velocity with Struts
Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Manish,
> Can you pls tell me how do you typically put stuff in the velocity context
> with struts? I searched through my "action" code (that someone lese wrote)
> for context.put, but couldn't find it. I have used velocity from plain Java
> classes before.
I typically put tools via the toolbox.xml, and other stuff via the
servlet request/session/application. The Context will find them there.
Check out
http://jakarta.apache.org/velocity/tools/view/
for details.
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Velocity with Struts
Posted by Manish <pr...@gmx.net>.
Thanks a ton for the link Shinobu!!!
Somehow the velocity site had hidden this link from me!!!! ;) ;)
Can you pls tell me how do you typically put stuff in the velocity context
with struts? I searched through my "action" code (that someone lese wrote)
for context.put, but couldn't find it. I have used velocity from plain Java
classes before.
TIA,
- Manish
----- Original Message -----
From: "Shinobu Kawai" <sh...@gmail.com>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Friday, October 08, 2004 12:44 PM
Subject: Re: Velocity with Struts
>
> Hi Manish,
>
> > Anybody using Velocity with struts?
> > Is there any article/tutorial available for the same? I haven't used
struts
> > in last year or so (just used for a month before that), so not much
> > comfortable
> > with struts.
> I'm sure you've already looked here:
> http://jakarta.apache.org/velocity/tools/struts/
>
> There is also a nice sample in the Velocity Tools package:
> examples/velstruts.war
> Of course, this is only a sample, but it did well for me.
>
> Best regards,
> -- Shinobu Kawai
>
> --
> Shinobu Kawai <sh...@gmail.com>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Velocity with Struts
Posted by Peter Harrison <pe...@nothingbutnet.co.nz>.
On Fri, 08 Oct 2004 20:49, Manish wrote:
> Thanks a ton for the link Shinobu!!!
> Somehow the velocity site had hidden this link from me!!!! ;) ;)
>
> Can you pls tell me how do you typically put stuff in the velocity context
> with struts? I searched through my "action" code (that someone lese wrote)
> for context.put, but couldn't find it. I have used velocity from plain Java
> classes before.
Typically the action will add objects to either the request or the session
with setAttribute( name, object );
When the request is handed to a Velocity Servlet of some kind the servlet will
usually load everything from the request and session into the Velocity
Context. Typically your views will be vm files, and will not be called until
the action is complete.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Velocity with Struts
Posted by Manish <te...@gmx.net>.
Thanks a ton for the link Shinobu!!!
Somehow the velocity site had hidden this link from me!!!! ;) ;)
Can you pls tell me how do you typically put stuff in the velocity context
with struts? I searched through my "action" code (that someone lese wrote)
for context.put, but couldn't find it. I have used velocity from plain Java
classes before.
TIA,
- Manish
----- Original Message -----
From: "Shinobu Kawai" <sh...@gmail.com>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Friday, October 08, 2004 12:44 PM
Subject: Re: Velocity with Struts
>
> Hi Manish,
>
> > Anybody using Velocity with struts?
> > Is there any article/tutorial available for the same? I haven't used
struts
> > in last year or so (just used for a month before that), so not much
> > comfortable
> > with struts.
> I'm sure you've already looked here:
> http://jakarta.apache.org/velocity/tools/struts/
>
> There is also a nice sample in the Velocity Tools package:
> examples/velstruts.war
> Of course, this is only a sample, but it did well for me.
>
> Best regards,
> -- Shinobu Kawai
>
> --
> Shinobu Kawai <sh...@gmail.com>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Velocity with Struts
Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Manish,
> Anybody using Velocity with struts?
> Is there any article/tutorial available for the same? I haven't used struts
> in last year or so (just used for a month before that), so not much
> comfortable
> with struts.
I'm sure you've already looked here:
http://jakarta.apache.org/velocity/tools/struts/
There is also a nice sample in the Velocity Tools package:
examples/velstruts.war
Of course, this is only a sample, but it did well for me.
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org