DeptId沒有實現get方法.
No getter method for property DeptId of bean

解决方案 »

  1.   

    javax.servlet.jsp.JspException: No getter method for property DeptId of bean 看看这句的提示,DeptId 在javaBean中找不到对应的get 方法。把DeptId变为deptId ,按照javaBean的命名规范写好get/set 方法,再试一试吧。
      

  2.   

    1、你先看看weblogic7是否可以正常运行!
    2、如果正常的话在看看struts-config.xml他的结构如下:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
    <struts-config>
      <form-beans>
        <form-bean name="testActionForm" type="struts.TestActionForm" />
        <form-bean name="wyjActionForm" type="struts.wyjActionForm" />
      </form-beans>
      <action-mappings>
        <action name="testActionForm"
                type="struts.ShowInforAction"
                validate="false"
                scope="request"
                path="/showInforAction">
          <forward name="success" path="/showInfor.jsp" />
        </action>
        <action name="wyjActionForm"
                type="struts.wyjAction"
                validate="true"
                input="/wyj.jsp"
                scope="session"
                path="/wyjAction">
          <forward name="success" path="/wyjsh.jsp" />
        </action>
      </action-mappings>
    </struts-config>