Click here to Skip to main content
14,357,434 members
Rate this:
Please Sign up or sign in to 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
<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 7:52am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100