On 5/11/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
Since we now require Servlet 2.3, there's little reason to configure
tlds in web.xml, and there's no reason to keep a copy of
validator-rules.xml in WEB-INF when it can be loaded from
struts-core.jar.
We can include them in 'lib' in the next distribution if more people
disagree. (But as you pointed out, they are included with the
source.)
I think it is much cleaner to have DTDs and other default XML files in
the JAR, but sometimes it might not work.
The hosting that I use for the samples, uses Tomcat 4.x, which
supposedly should support SRV 2.3 and therefore it should be able to
pull DTDs from classpath. Yet, this does not work, I don't know
exactly why. But if I put DTD files into lib directory and configure
them in web.xml then everything works fine.
The bottom line, it is better to hide DTDs in the JAR, but in case it
does not work a readily available HOW-TO should be provided.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]