The document type declaration for root element type "struts" must end with '>'.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts (View Source for full doctype...)>
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="true" />
<constant name="struts.ui.theme" value="simple" />
<constant name="struts.custom.i18n.resources" value="messages" />
<package name="default" namespace="/" extends="struts-default">
<action name="login" class="com.javatrain.action.LoginAction">
<result name="input">/message.jsp</result>
<result name="success">/login.jsp</result>
<result name="valid">/loginValid.jsp</result>
</action>
<action name="userAdd" class="com.javatrain.action.UserAction" method="add">
<result name="success">/addUser.jsp</result>
<result name="input">/message.jsp</result>
</action>
</package>
</struts>
小弟这个struts。xml一直报错呢在第二行
------解决方案--------------------<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">