I am a new user of Velocity. I have a simple servlet (my servlet) that extends the 
VelocityServlet. I am having trouble using the getParameter() method to obtain 
parameters
submitted from the vm template. I understand that the VelocityServlet puts the request 
object in the context, but I cannot figure out how to obtain the parameters from the 
request.

I have tried putting this in the handleRequest method of 'my servlet' class
//to get the request 
Object req = ctx.get(REQUEST); 
// to get parameter from request
String branch = req.getParameter("branch");

I get this error
java:31: cannot resolve symbol
symbol  : method getParameter  (java.lang.String)
location: class java.lang.Object
        String branch = req.getParameter("branch");
                                        ^


Any assistance would be appreciated.

_________________________________________________
Kris Benedetto
GE Capital TIP/Modular Space
426 W. Lancaster Avenue         Phone: 610-648-6795
Devon PA19333                   Fax:     610-648-6720
Email:  [EMAIL PROTECTED]


Reply via email to