我的配置文件是
    <!-- ========== Form Bean Definitions ================================== -->
    <form-beans>
<form-bean name="logonForm" type="cn.com.boa.logon.LogonInfoForm" />
<form-bean name="patientInfoListForm" type="cn.com.boa.patientinfo.form.PatientInfoListForm" />
<form-bean name="patientInfoEditForm" type="cn.com.boa.patientinfo.form.PatientInfoEditForm" />
    </form-beans><action-mappings>
<!-- for logon start -->
<action path="/logon"
            name="logonForm"
scope="session"
            validate="false" 
type="cn.com.boa.logon.LogonAction">
<forward name="success" path ="/jsp/patientinfo/patient_baseinfo_lst.jsp" />
<forward name="failure" path ="/logon.jsp"/>
</action>   </action-mappings>本人在LogonAction中加断点跟踪mapping看到了forwards中有路径="/jsp/patientinfo/patient_baseinfo_lst.jsp 啊
请问高手这可能是那里的问题啊?

解决方案 »

  1.   

    /jsp/patientinfo/下没有patient_baseinfo_lst.jsp这个文件,配置对了也没用啊.那个页面估计你建错地方了:)
      

  2.   

    楼山的,我重新确认了两遍,都正确啊
    第一次陪好时候是能够使用的阿
    我把我整个的配置文件写下来:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "dtds/struts-config_1_1.dtd">
    <struts-config>    <!-- ========== Data Source Configuration =============================== -->
        <data-sources>
            <!-- DataBase Setting for Oracle 8i start -->
            <data-source type="org.apache.commons.dbcp.BasicDataSource">
                <set-property property="driverClassName" value="com.microsoft.jdbc.sqlserver.SQLServerDriver" />
                <set-property property="url" value="jdbc:microsoft:sqlserver://127.0.0.1:1433;ServerName=IBMER\HOSPITAL;DatabaseName=Hospital" />
                <set-property property="username" value="sa"/>
                <set-property property="password" value="1"/>
                <set-property property="maxActive" value="5" />
                <set-property property="maxWait" value="5000" />
                <set-property property="defaultAutoCommit" value="false" />
                <set-property property="defaultReadOnly" value="false" />
            </data-source>        
        </data-sources>

        <!-- ========== Form Bean Definitions ================================== -->
        <form-beans>
    <form-bean name="logonForm" type="cn.com.boa.logon.LogonInfoForm" />
    <form-bean name="patientInfoListForm" type="cn.com.boa.patientinfo.form.PatientInfoListForm" />
    <form-bean name="patientInfoEditForm" type="cn.com.boa.patientinfo.form.PatientInfoEditForm" />
        </form-beans>
        
        <!-- ========== Global Exception Definitions ============================== -->
        <global-exceptions />
        
        <!-- ========== Global Forward Definitions =============================== -->
        <global-forwards/>
        <!-- ========== Action Mapping Definitions =============================== -->
    <action-mappings>
    <!-- for logon start -->
    <action path="/logon"
                name="logonForm"
    scope="session"
                validate="false" 
    type="cn.com.boa.logon.LogonAction">
    <forward name="success" path ="/jsp/patientinfo/patient_baseinfo_lst.jsp" />
    <forward name="failure" path ="/logon.jsp"/>
    </action>

    <action path="/patientInfoInit"
    name="patientInfoListForm"
    attribute="patientInfoListForm"
    scope="session"
    validate="false"
    type="cn.com.boa.patientinfo.action.PatientInfoInitAction">
    <forward name="success" path ="/jsp/patientinfo/patient_baseinfo_lst.jsp" contextRelative="true"/>
    <forward name="failure" path ="/jsp/patientinfo/patient_baseinfo_lst.jsp" contextRelative="true"/>
    </action>

    <action path="/patientInfoSearch"
    name="patientInfoListForm"
    attribute="patientInfoListForm"
    scope="session"
    validate="false"
    input="/../jsp/patientinfo/patient_baseinfo_lst.jsp"
    type="cn.com.boa.patientinfo.action.PatientInfoSearchAction">
    <forward name="success" path ="/jsp/patientinfo/patient_baseinfo_lst.jsp" contextRelative="true"/>
    <forward name="failure" path ="/jsp/patientinfo/patient_baseinfo_lst.jsp" contextRelative="true"/>
    </action>

    <action path="/patientInfoDelete"
    name="patientInfoListForm"
    attribute="patientInfoListForm"
    scope="session"
    validate="false"
    type="cn.com.boa.patientinfo.action.PatientInfoDeleteAction">
    <forward name="success" path ="/patientInfoSearch.do" />
    <forward name="failure" path ="/jsp/patientinfo/patient_baseinfo_lst.jsp" contextRelative="true"/>
    </action>

    <action path="/patientInfoCreate"
    name="patientInfoEditForm"
    attribute="patientInfoEditForm"
    scope="session"
    validate="false"
    type="cn.com.boa.patientinfo.action.PatientInfoDeleteAction">
    <forward name="success" path ="/jsp/patientinfo/patient_baseInfo_add.jsp" contextRelative="true"/>
    <forward name="failure" path ="/jsp/patientinfo/patient_baseInfo_add.jsp" contextRelative="true"/>
    </action>

    <action path="/patientInfoInsert"
    name="patientInfoEditForm"
    attribute="patientInfoEditForm"
    scope="session"
    validate="false"
    type="cn.com.boa.patientinfo.action.PatientInfoDeleteAction">
    <forward name="success" path ="/patientInfoSearch.do" />
    <forward name="failure" path ="/jsp/patientinfo/patient_baseInfo_add.jsp" contextRelative="true"/>
    </action>

    <action path="/patientInfoGetDetail"
    name="patientInfoEditForm"
    attribute="patientInfoEditForm"
    scope="session"
    validate="false"
    type="cn.com.boa.patientinfo.action.PatientInfoGetDetailAction">
    <forward name="success" path ="/jsp/patientinfo/patient_baseInfo_add.jsp" contextRelative="true"/>
    <forward name="failure" path ="/jsp/patientinfo/patient_baseinfo_lst.jsp" contextRelative="true"/>
    </action>

    <action path="/patientInfoUpdate"
    name="patientInfoEditForm"
    attribute="patientInfoEditForm"
    scope="session"
    validate="false"
    type="cn.com.boa.patientinfo.action.PatientInfoUpdateAction">
    <forward name="success" path ="/patientInfoSearch.do" />
    <forward name="failure" path ="/jsp/patientinfo/patient_baseInfo_add.jsp" contextRelative="true"/>
    </action>
      </action-mappings>    <!-- ========== Message Resources Definitions ============================ -->
        <message-resources parameter="ApplicationResources"/>    

    <plug-in className="cn.com.boa.db.SQLConfigPlugIn">
         <set-property property="dbType" value="SqlServer"/>
           <set-property property="fileKeys" value="hospital" />
           <set-property property="filePaths" value="/WEB-INF/sql/sql-hospital-sqlserver.xml"/>
        </plug-in>

        <plug-in className="cn.com.boa.utility.OutputLogPlugin">
          <set-property property="logSettingFile"
                        value="/WEB-INF/LogSetting.xml"/>
        </plug-in>
    </struts-config>
    帮忙看一看
    请问有没有可能是缺少解析jsp文件的包呢?
    jasper-compiler.jar和jasper-runtime.jar在tomcat的lib目录中存在!
      

  3.   

    /jsp/patientinfo/patient_baseinfo_lst.jsp  会不会是相对路径和绝对路径的问题啊,把你的问题的贴出来