根元素后面的文档中的标记必须格式正确。 [英] The markup in the document following the root element must be well-formed.
本文介绍了根元素后面的文档中的标记必须格式正确。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友我在eclipse中的web.xml文件中收到错误,因为struts的应用程序支持我的xml文件如下
Hi friend I am getting an error in web.xml file in eclipse for an apps for struts 1.2 my xml file is as follows
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet </servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
第10行的
< servlet-mapping>我得到这个错误的文件中的标记必须是格式良好的形式。请帮助我。谢谢。
on line 10 <servlet-mapping> I getting this error of The markup in the document following the root element must be well-formed.please help me.Thank you.
推荐答案
你已经开始了一个新的根元素, servlet-mapping
,我认为不允许这样做。
You have started a new root element, servlet-mapping
, which I do not think is allowed.
这篇关于根元素后面的文档中的标记必须格式正确。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文