Thanks
alot for the reply. Actually I used eclipse and overridden the method execute() and I got the @Override annotation withit (later I removed the annotation though). I just checked Action class,it contains both the methods.
ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic.
ActionForward execute(ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response)
Process the specified non-HTTP request, and create the corresponding non-HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic.
Thats is the reason I was confused . Anyway I got the solution . ServletRequest, ServletResponse in execute() method is used for non-HTTP requests ,cannot be used for HTTP request.