You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Ed Yu <ek...@asgnet.psc.sc.edu> on 2002/07/20 21:02:51 UTC
What am I doing wrong here ($link)
I have the following code:
<html>
\$link.getContextURI() - $link.getContextURI() <br>
</html>
That outputs:
\$link.getContextURI() - $link.getContextURI()
And in the log file:
2002-07-20 15:09:33 - /VelocityStrutsTest: Velocity [warn]
org.apache.velocity.runtime.exception.ReferenceException: reference :
template = /link_test.vm [line 2,column 26] : $link.getContextURI() is
not a valid reference.
According to the docs, I should get back "http://myserver.net/myapp".
Any ideas?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: What am I doing wrong here ($link)
Posted by "Geir Magnusson Jr." <ge...@adeptra.com>.
On 7/20/02 3:02 PM, "Ed Yu" <ek...@asgnet.psc.sc.edu> wrote:
> I have the following code:
>
> <html>
> \$link.getContextURI() - $link.getContextURI() <br>
> </html>
>
> That outputs:
>
> \$link.getContextURI() - $link.getContextURI()
>
> And in the log file:
>
> 2002-07-20 15:09:33 - /VelocityStrutsTest: Velocity [warn]
> org.apache.velocity.runtime.exception.ReferenceException: reference :
> template = /link_test.vm [line 2,column 26] : $link.getContextURI() is
> not a valid reference.
>
> According to the docs, I should get back "http://myserver.net/myapp".
> Any ideas?
What version of Velocity?
What does $link print out? (I want to know the class...)
--
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>