You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Townson, Chris" <C....@nature.com> on 2005/04/25 14:01:02 UTC

Help! Simple velocity 1.4 setup with Tomcat 5.5.9

- The problem:
I need to set up Velocity 1.4 to run under Tomcat 5.5.9 in order to
replicate certain templating facilities available on our (somewhat
unreliable) staging server on my local development machine.

Basically, all I need to be able to do is configure velocity/tomcat so that
velocity will handle #parse and #include instructions within files with the
extension *.html

I have a working install of Tomcat 5.5.9 on Windows XP (SP2) and have
downloaded Velocity + Velocity tools. So far, I have attempted to follow two
tutorials on Tomcat+Velocity at:
http://www.developertutorials.com/tutorials/java/templating-with-velocity/pa
ge6.html
And
http://www.utdallas.edu/~baughman/velocity2.html

However, probably because I am not a java (or JSP) developer, I have not
been able to successfully configure velocity/tomcat following these
guides...they get above my head when they start talking about writing your
own classes!

- The question:
Does anyone out there know of a good "idiots guide" to getting
tomcat+velocity up and running?
Can anyone tell me what the basic steps are to get velocity handling #parse
and #include instructions in .html files?

Thanks in advance for your help and advice. All are gratefully received!

Christopher Townson

********************************************************************************   
DISCLAIMER: This e-mail is confidential and should not be used by anyone who is
not the original intended recipient. If you have received this e-mail in error
please inform the sender and delete it from your mailbox or any other storage
mechanism. Neither Macmillan Publishers Limited nor any of its agents accept
liability for any statements made which are clearly the sender's own and not
expressly made on behalf of Macmillan Publishers Limited or one of its agents.
Please note that neither Macmillan Publishers Limited nor any of its agents
accept any responsibility for viruses that may be contained in this e-mail or
its attachments and it is your responsibility to scan the e-mail and 
attachments (if any). No contracts may be concluded on behalf of Macmillan 
Publishers Limited or its agents by means of e-mail communication. Macmillan 
Publishers Limited Registered in England and Wales with registered number 785998 
Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS   
********************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Help! Simple velocity 1.4 setup with Tomcat 5.5.9

Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Christopher,

> - The problem:
> I need to set up Velocity 1.4 to run under Tomcat 5.5.9 in order to
> replicate certain templating facilities available on our (somewhat
> unreliable) staging server on my local development machine.

## snip

> - The question:
> Does anyone out there know of a good "idiots guide" to getting
> tomcat+velocity up and running?

Inside your VelocityTools download, there are a couple war files. 
Just deploy and enjoy.  :)

> Can anyone tell me what the basic steps are to get velocity handling #parse
> and #include instructions in .html files?

Now that's something new.  Are you sure you don't want all the other
goodies Velocity has to offer?
    http://jakarta.apache.org/velocity/user-guide.html

It is by all means possible to map html files to Velocity.  Just
change/add the servlet-mapping settings.
    http://jakarta.apache.org/velocity/tools/view/index.html

Best regards,
-- Shinobu

--
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