You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sridhar Raman <sr...@gmail.com> on 2007/12/28 08:10:19 UTC
Location of struts_config DTD file?
In the struts-config.xml file, I need to specify the location of the
struts_config DTD file. Normally, this is given as an http link. But if
the net is down, it obviously won't work. The documentation says that one
needs to copy the DTD into the struts.jar under resources. But doing this
also doesn't help. I still get the same exception.
On Windows, I could atleast use file:// instead of http:// and point to a
location on the local machine. This works, but the same doesn't work in
UNIX.
Can someone kindly help?
Thanks,
Sridhar
Re: Location of struts_config DTD file?
Posted by Simon Berger <ba...@gmx.net>.
copy this file to your web-inf and use relative path's
i did like this
struts.xml
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"../conf/struts-2.0.dtd">
Sridhar Raman schrieb:
> In the struts-config.xml file, I need to specify the location of the
> struts_config DTD file. Normally, this is given as an http link. But if
> the net is down, it obviously won't work. The documentation says that one
> needs to copy the DTD into the struts.jar under resources. But doing this
> also doesn't help. I still get the same exception.
>
> On Windows, I could atleast use file:// instead of http:// and point to a
> location on the local machine. This works, but the same doesn't work in
> UNIX.
>
> Can someone kindly help?
>
> Thanks,
> Sridhar
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Location of struts_config DTD file?
Posted by Laurie Harper <la...@holoweb.net>.
Sridhar Raman wrote:
> In the struts-config.xml file, I need to specify the location of the
> struts_config DTD file. Normally, this is given as an http link. But if
> the net is down, it obviously won't work. The documentation says that one
> needs to copy the DTD into the struts.jar under resources. But doing this
> also doesn't help. I still get the same exception.
>
> On Windows, I could atleast use file:// instead of http:// and point to a
> location on the local machine. This works, but the same doesn't work in
> UNIX.
>
> Can someone kindly help?
I'm not sure which documentation you refer to above, but you shouldn't
need to do anything for the DTD to be resolved; AFAIK it should 'just
work'. However, I believe this might have been broken in some releases
(I seem to recall seeing discussion about it on the dev list). If you're
not using the latest release, upgrading might help.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Location of struts_config DTD file?
Posted by Sridhar Raman <sr...@gmail.com>.
Thanks for the help guys. There was a problem with the struts.jar we had.
Apparently it was broken. We fixed it.
On Dec 29, 2007 8:16 AM, Wendy Smoak <ws...@gmail.com> wrote:
> On Dec 28, 2007 12:10 AM, Sridhar Raman <sr...@gmail.com> wrote:
> > In the struts-config.xml file, I need to specify the location of the
> > struts_config DTD file. Normally, this is given as an http link. But
> if
> > the net is down, it obviously won't work.
>
> Not true. The DTD is inside the Struts jar, and you don't need to
> copy it anywhere.
>
> Here's a post explaining how it works for Struts 1:
> http://marc.info/?l=struts-user&m=107842475723945
>
> > The documentation says that one
> > needs to copy the DTD into the struts.jar under resources. But doing
> this
> > also doesn't help. I still get the same exception.
>
> What documentation? (And what exception?)
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Location of struts_config DTD file?
Posted by Wendy Smoak <ws...@gmail.com>.
On Dec 28, 2007 12:10 AM, Sridhar Raman <sr...@gmail.com> wrote:
> In the struts-config.xml file, I need to specify the location of the
> struts_config DTD file. Normally, this is given as an http link. But if
> the net is down, it obviously won't work.
Not true. The DTD is inside the Struts jar, and you don't need to
copy it anywhere.
Here's a post explaining how it works for Struts 1:
http://marc.info/?l=struts-user&m=107842475723945
> The documentation says that one
> needs to copy the DTD into the struts.jar under resources. But doing this
> also doesn't help. I still get the same exception.
What documentation? (And what exception?)
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org