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