You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Ed Yu <ek...@asgnet.psc.sc.edu> on 2002/07/08 20:22:33 UTC
Question with ParameterParser tool in VTL
Hi all,
I've a problem in using the ParameterParser tool within VTL:
$reqParser.getInt($request, "pager_pageIndex", 0)
result in an invalid reference:
2002-07-08 14:14:20 - /VelocityStrutsTest: Velocity [info]
ResourceManager : found /pager_test.vm with loader
org.apache.velocity.tools.view.servlet.WebappLoader
2002-07-08 14:14:20 - /VelocityStrutsTest: Velocity [warn]
org.apache.velocity.runtime.exception.ReferenceException: reference :
template = /pager_test.vm [line 32,column 19] :
$reqParser.getInt($request, "pager_pageIndex", 0) is not a valid
reference.
The strange thing is that $reqParser.getString($request,
"pager_pageIndex", "0") works fine and I've just check out from CVS and
build form source. This behavior is also found in the binary
distribution (velocity-tools-library-0.2.jar).
Any ideas?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ed Yu, IBM Certified Specialist - AIX System Administrator
Information Technology Manager,
University of South Carolina,
Advanced Solutions Group, Physics Dept.,
Columbia, SC 29208
Office (803)777-8831, FAX (803)777-8833, Email ekyu@asgnet.psc.sc.edu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Question with ParameterParser tool in VTL
Posted by Nathan Bubna <na...@esha.com>.
Ed said:
...
> I've a problem in using the ParameterParser tool within VTL:
>
> $reqParser.getInt($request, "pager_pageIndex", 0)
>
> result in an invalid reference:
...
> The strange thing is that $reqParser.getString($request,
> "pager_pageIndex", "0") works fine ...
hmm. what is the result of of $request.getParameter("pager_pageIndex") ?
Nathan Bubna
nathan@esha.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>