For me, putting it in the WEB-INF directory has always worked for web apps.
The one time I had to write an EntityResolver was when I was parsing
dtd files in a batch job instead of a web app.

On 12/5/05, Juan Medín Piñeiro <[EMAIL PROTECTED]> wrote:
> Unfortunately putting the file in the WEB-INF dir doesn't work for me
> (other people have the same problem:
> http://forum.java.sun.com/thread.jspa?threadID=676326).
>
> Isn't writing your own EntityResolver a bit too much for this problem?
>
> Regards,
>
> - Juan
>
> On 11/29/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> > What works for me is to add the dtd files to the WEB-INF directory,
> > and the xml parser searches there before trying the URL.
> > I think the solution to this problem depends on your xml parser, though.
> > I've also seen others suggest writing your own EntityResolver.
>

Reply via email to