velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@binarix.com>
Subject req in Velocity
Date Thu, 15 Mar 2001 03:18:20 GMT
As far as I can tell, the $req points to HttpServletRequest and $res to
HttpServletResponse in VTL when using standard context in a servlet. If
I use those as is, everything is fine (BTW: $request *DOESN'T* work as
shown in the docs).

But when methods are referenced (e.g. $req.getRequestURI()), the
resulting HTML shows them literally (ie. Velocity doesn't find the
methods within $req).

Config:

Velocity 0.75 (snapshot 13/03/2001)
Tomcat 3.2.1
Apache 1.3.19 + mod_jk
JDK 1.3.0 (blackdown.org)
RedHat Linux 7.0

I've seen a few workarounds on the list but it would be interesting to
know if this has been resolved properly.

Bojan

Mime
View raw message