You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Riddhi.Sanyal" <ri...@hbh.ilabsgroup.com> on 2003/09/15 10:17:28 UTC

Velocity installation and getting started

Dear sir,
	I want to use velocity to build and deploy JSP pages. Can you please
mention the how to deploy JSP pages with velocity tags using tomcat as
currently it is not working with tomcat.
Ex : If I deploy a HTML page like :

<html>
<body>
#set( $foo = "Velocity" )
Hello $foo World!
</body>
<html>

The output is : #set( $foo = "Velocity" ) Hello $foo World! 
not Hello Velocity World.
Shall I know what settings I need to change in my Tomcat or anywhere else.
Regards,
Riddhi Sanyal


Re: Velocity installation and getting started

Posted by Daniel Graham <da...@gr8.tv>.
It's not particularly easy to use Velocity in .jsp page .. you
need to configure and run and actual _servlet_ which you can
do by extending VelocityViewServlet, or any of the alternatives.

http://jakarta.apache.org/velocity/developer-guide.html#Using%20Velocity%20In%20Servlets

Shows you how to do this.

HTH

Danny.

Riddhi.Sanyal wrote:

> Dear sir,
> 	I want to use velocity to build and deploy JSP pages. Can you please
> mention the how to deploy JSP pages with velocity tags using tomcat as
> currently it is not working with tomcat.
> Ex : If I deploy a HTML page like :
> 
> <html>
> <body>
> #set( $foo = "Velocity" )
> Hello $foo World!
> </body>
> <html>
> 
> The output is : #set( $foo = "Velocity" ) Hello $foo World! 
> not Hello Velocity World.
> Shall I know what settings I need to change in my Tomcat or anywhere else.
> Regards,
> Riddhi Sanyal
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 

-- 
Dr Daniel Graham
Product Strategy Manager
Video and Image Coding Specialists
daniel.grahamNOSPAM@videocoding.com
http://www.videocoding.com
Tel : [+44|0] 870 241 4618