Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
XML
<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> 

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.
Posted
Updated 25-Sep-19 6:52am

1 solution

You have started a new root element, servlet-mapping, which I do not think is allowed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900