Veltag and VelocityTools have not yet been made to work together. 
this is something we plan to do after we get velocity tools 1.2
released.

however, i have talked over how to integrate the two of them before. 
read the messages in this thread for complete instructions:

http://marc.theaimsgroup.com/?t=108212363800008&r=1&w=2

On 11/10/05, Rafał Gierusz <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to use Veltag in my JSP page. My code for velocity in my
> JSP page look like this (first two lines for vel test - works):
>
> <vel:velocity>
>   #if (true) true #end
>   #if (!false) & false #end
>   <br>
>   $date.get("yyyy-M-d H:m:s")
> </vel:velocity>
>
> my output is:
>
> true & false
> $date.get("yyyy-M-d H:m:s")
>
> so, $date.get("yyyy-M-d H:m:s") is not evaluated, this line works if I
> use it with *.vm page. When using Veltag in JSP I get also error in
> log file:
>
> 2005-11-10 13:25:43 org.apache.catalina.core.ApplicationContext log
> INFO:  Velocity   [warn] 
> org.apache.velocity.runtime.exception.ReferenceException: reference : 
> template = JSP for me! [line 5,column 11] : $date.get("yyyy-M-d H:m:s") is 
> not a valid reference.
>
> my tool config look like this:
>
> <tool>
>   <key>date</key>
>   <scope>application</scope>
>   <class>org.apache.velocity.tools.generic.DateTool</class>
> </tool>
>
> I'am quite sure that I can't use any velocity tool im my JSP.
>
> Anybody can help me?
>
> Michal
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to