小弟的xml文件结构如下
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by 1234 (aa) -->
<!DOCTYPE request-mappings SYSTEM "../dtd/requestmappings.dtd">
<request-mappings>
<url-mapping url="/GoLogin" next-screen="/login/login.jsp"/>
<!--GeneralException銆€绯荤粺寮傚父-->
<url-mapping url="/generalException" next-screen="/exception/generalException.jsp"/>
<!--GeneralException銆€涓氬姟閫昏緫-->
<url-mapping url="/businessException" next-screen="/exception/businessException.jsp"/>
<!-- login -->
<url-mapping url="/login">
<preprocess-handler-class>com.viewhigh.cchs.common.CchsPreProcessHandler</preprocess-handler-class>
<businesslogic-class>com.viewhigh.cchs.login.LoginBusinessLogic</businesslogic-class>
<flow-handler class="com.viewhigh.cchs.login.LoginFlowHandler">
<handler-result result="LoginSucceed" screen="/common/allmanager.jsp"/>
<handler-result result="LoginDefeated" screen="/login/login.jsp"/>
<handler-result result="secondMenu" screen="/common/menu.jsp"/>
<handler-result result="loginOut" screen="/login/login.jsp"/>
<handler-result result="GoChangePwd" screen="/login/changePwd.jsp"/>
<handler-result result="LoginComplete" screen="/common/loginComplete.jsp"/>
<handler-result result="loginMenu" screen="/common/menu.jsp"/>
</flow-handler>
</url-mapping>
</request-mappings>
相应的dtd文件在xml文件上一级目录的dtd子目录下,位置绝对没问题,在tomcat4下运行正常,但不知道为什么在5。0下不能用。
另外,小弟的xml用jdom.jar解析,该文件在tomcat/common/lib/下,不知识否有影响