Structs-error 01-Document is invalid: no grammar found

Source: Internet
Author: User

A moment of cheap, the structs-config.xml file in a paragraph deleted, the results are always reported error.
Error message: Document is invalid: no grammar found
[Html]
<? Xml version = "1.0" encoding = "UTF-8"?>
<Strong> <span style = "color: # ff0000;"> <! DOCTYPE struts-config PUBLIC
"-// Apache Software Foundation // DTD Tiles Configuration 1.3 // EN"
"Http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd"> </span> </strong>
<Struts-config>
<Form-beans>
<Form-bean name = "helloForm" type = "com. mars. demo01.structs01. form. HelloForm"/>
</Form-beans>
<! -- Used to configure ActionForm -->
<Global-exceptions/> <! -- Used to configure global exceptions -->
<Global-forwards/> <! -- Used to configure global redirect -->
<Action-mappings>
<Action attribute = "helloForm" input = "/demo01/demo01_hello.jsp"
Name = "helloForm" path = "/demo01/demo01_hello" scope = "request"
Type = "com. mars. demo01.structs01. action. HelloAction" cancellable = "true">
<Forward name = "show" path = "/demo01/demo01_hello.jsp"> </forward>
</Action> www.2cto.com
 
</Action-mappings>
<! -- Used to configure Action -->
<Message-resources parameter = "com. mars. demo01.structs01. ApplicationResources"/>
</Struts-config>
Then restore to the original state, and the result is better. Therefore, this sentence cannot be deleted. I checked on the Internet and found that this is a definition format. How can this problem be solved.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.