At first glance your struts.xml seems to be ok.
I don't know the eclipse environment, the only two things that come to my
mind are:
1 you are behind a firewall/proxy and eclipse is not be aware of this
2 there is something broken in your dependencies


2010/12/28 Stefaan Somers <stefaan.som...@gmail.com>:
> I have create the most simple struts2 application, where I refer with my
> build path to the necessary struts2-jar files.
> But it keeps complaining in the Eclipse-IDE on "struts.xml" with the
> following message : The errors below were detected when validating the
file
> "struts-2.0.dtd" via the file "struts.xml". In most cases these errors can
> be detected by validating "struts-2.0.dtd" directly. However it is
possible
> that errors will only occur when struts-2.0.dtd is validated in the
context
> of struts.xml.
>
> Content struts.xml :
> <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache
> Software Foundation//DTD Struts Configuration 2.0//EN" "
> http://struts.apache.org/dtds/struts-2.0.dtd";> <struts> <constant
> name="struts.enable.DynamicMethodInvocation" value="false" /> <constant
> name="struts.devMode" value="false" /> <constant
> name="struts.custom.i18n.resources" value="ApplicationResources" />
<package
> name="default" extends="struts-default" namespace="/"> <action
name="login"
> class="net.viralpatel.struts2.LoginAction"> <result
> name="success">Welcome.jsp</result> <result
name="error">Login.jsp</result>
> </action> </package> </struts>
>

-- 
Maurizio Cucchiara

Reply via email to