get() set()了没有?    

解决方案 »

  1.   

    用的struts1?如果是那么struts的配置文件里面是否有这样的东西?<form-bean name="TaskForm" type="com.cs.web.form.TaskForm"></form-bean><action path="/replaceFile" type="org.springframework.web.struts.DelegatingActionProxy" validate="false" name="TaskForm">
    <forward name="SUCCESS" path="/upload.jsp"></forward>
    </action>
      

  2.   

    OperationAgentForm operationAgentForm = (OperationAgentForm) form;
    好像是s1 的写法吧!! 
     
    String[] agentCodes = operationAgentForm.getDelAgentCodes().split("&&##&&"); //该行报空指针这样不行 就换个方法取值!!