-1
我得到我下面的錯誤struts-config.xml中解析錯誤在struts-config.xml文件
嚴重:在線路解析錯誤6列16:文檔根元素「的struts-config」,必須匹配DOCTYPE根「表單驗證」。 org.xml.sax.SAXParseException; systemId:jndi:/localhost/SSH/WEB-INF/struts-config.xml; lineNumber:6; columnNumber:16;文檔的根元素「的struts-config」,必須DOCTYPE根「的形式,validaton匹配
XML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.3.0//EN" "http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd">
<struts-config>
<form-beans>
<form-bean name="sform" type="org.apache.struts.action.DynaActionForm">
<form-property name="sid" type="java.lang.String"/>
</form-bean>
</form-beans>
<global-exceptions/>
<global-forwards/>
<action-mappings>
<action path="/sidSubmit" name="sform"
type="org.springframework.web.struts.DelegatingActionProxy"
scope="request"
input="/search.jsp">
<forward name="search" path="/search.jsp"/>
</action>
</action-mappings>
<message-resources parameter="com.xxx.xxx.Application"></message-resources>
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/studentContext.xml"/>
</plug-in>
</struts-config>