I see you are using the index.vm file from VelocityTools' simple
example app.  But that doesn't tell us much.  How are you processing
the template?  What version of Velocity are you using? Are you using
VelocityTools and if so, which version? Are you just running the
simple.war example app?  Are you using the VelocityViewServlet?  Do
you have a tools.xml or toolbox.xml file?  What are you trying to
accomplish?

On Feb 6, 2008 10:03 PM, Kalyan Dhar <[EMAIL PROTECTED]> wrote:
>
> Dear Sir,
>
> All methods and variable are showing as a text.
>
> This is my simple program downloaded from apache site.
> .................................................................
> <html>
> <body>
>
> I'm a velocity template.
>
> #if( $XHTML )
>   #set( $br = "<br />" )
> #else
>   #set( $br = "<br>" )
> #end
>
> $br
> $br
>
> Here we use a custom tool: $toytool.message
>
> $br
> $br
>
> Lets count : #foreach($i in [1..5])$i #end
>
> $br
> $br
>
> Let's play with a hashmap:$br
> first add foo: $map.put("foo",$foo)$br
> then add bar: $map.put("bar",$bar)$br
> $br
> and that gives us $map
>
> $br
> $br
>
> Here we get the date from the DateTool:  $date.medium
>
> $br
> $br
>
> #if( $isSimple )
> This is simple#if( $XHTML ) xhtml#end app version ${version}.
> #end
>
> </body>
> </html>
> ............................................................................
> And I am getting the output
> ............................................................................
>
>
>
>
> I'm a velocity template.
>
> Here we use a custom tool: $toytool.message
>
> Lets count : 1 2 3 4 5
>
> Let's play with a hashmap:
> first add foo: $map.put("foo",$foo)
> then add bar: $map.put("bar",$bar)
>
> and that gives us $map
>
> Here we get the date from the DateTool: $date.medium
>
>
>
> ...........................................................
>
> Please help me to get the correct result.
>
> Waiting for your quick responds
>
> With Regards
> Kalyan Dhar
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to