是不是request 和你参数中的不一致啊
HttpServletRequest  检查一下看看 
应该不关配置的事情

解决方案 »

  1.   

    一般实现action类里的execute方法,其中request作为参数传人
      

  2.   

    public ActionForward perform(ActionMapping actionMapping,
                                   ActionForm actionForm,
                                   HttpServletRequest httpServletRequest,
                                   HttpServletResponse httpServletResponse) {
    }看看上面的参数!!!应该用httpServletRequest;
      

  3.   

    public ActionForward perform(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)有这个啊.可是request 用不了,实例actionform 调用它的getXXX方法是能得到JSP页面的值然后forward,如果是这样的话,是不是一个jsp 的表单对应一个actionform 对应一个action,然后通过action 来实现control呢?
      

  4.   

    public ActionForward perform(ActionMapping actionMapping,
                                   ActionForm actionForm,
                                   HttpServletRequest httpServletRequest,
                                   HttpServletResponse httpServletResponse) {
    }看看上面的参数!!!应该用httpServletRequest;
    同意,以上意见。改为:
    public ActionForward perform(ActionMapping actionMapping,
                                   ActionForm actionForm,
                                   HttpServletRequest request,
                                   HttpServletResponse httpServletResponse) {
    }
    你就可以使用request了。request是jsp的对象。在Action里不能直接使用,request的所有功能都被封装到了HttpServletRequest 类了。