java - eclipse not validating the struts.xml file -


i installed eclipse in new p.c. , import old project of struts2 in , after importing project got warning in struts.xml file i.e. "the file cannot validated there connection problem.". replaced jar files , doctype many times still didn't work. found eclipse not showing me error if wrong in file when eclipse clean project takes lot of time clean struts.xml file

<?xml version="1.0" encoding="utf-8"?>  <!doctype struts public      "-//apache software foundation//dtd struts configuration 2.3//en"     "http://struts.apache.org/dtds/struts-2.3.dtd">  <struts>  <package name="a" extends="struts-default">  <action name="b" class="com.test">    <result name="success">/success.jsp</result>          <result name="error">/error.jsp</result>       </action>   </package>  </struts> 

please me getting lots of difficulties...???

change doctype to:

 <!doctype struts public     "-//apache software foundation//dtd struts configuration 2.1//en"     "/web-inf/dtds/struts-2.1.dtd"> 

and extract "struts-2.1.dtd" file "struts2-core-2.1.8.1.jar" dtds folder(create new) inside web-inf folder.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -