Oki DZ wrote:
>
> Hi,
>
> I want to use the following signature in my servlet:
> public Template handleRequest(HttpServletRequest request,
> HttpServletResponse response,
> Context context)
>
> But when I build the program, I have the following:
>
> build:
> [javac] Compiling 1 source file to
> /home/okidz/tomcat/webapps/passwd/WEB-INF/classes
> [javac]
> /home/okidz/tomcat/webapps/passwd/src/com/pindad/webapp/Passwd.java:20:
> class com.pindad.webapp.Passwd must be declared abstract. It does not
> define org.apache.velocity.Template
> handleRequest(org.apache.velocity.context.Context) from class
> org.apache.velocity.servlet.VelocityServlet.
> [javac] public class Passwd extends VelocityServlet {
> [javac] ^
> [javac] 1 error
>
> FYI, I use Velocity 1.0.1.
>
> What might the problem be?
That you are using Velocity 1.0.1
The new handleRequest() method is in Velocity 1.1 Get the latest from
CVS, or a nightly snapshot.
geir
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
"still climbing up to the shoulders..."