httpServletRequest.getParameter("input name");

解决方案 »

  1.   

    同楼上。perform方法的httpServletRequest参数。
      

  2.   

    假设你的form名位  AForm参数是name ,则如下获取
    AForm aForm = (AForm) form;
    String name=aForm.getName();
      

  3.   

    ActionForm aform=(ActionForm)form;
    String strFieldName=aform.get(域名);注意“域名”在actionform中的定义要与jsp表单里的域名一至(包括大小写)
      

  4.   

    数据是由ActionForm中的get方法得到。不要用了struts还用
    httpServletRequest.getParameter("input name");
    方法取数据。那样的话struts本身有什么作用呢?