In fact, this should not occur, for a 2.3 spec-compliant server
matches the taglib uri against web.xml and the tld file(s) inside
the jar's META-INF directory first and should therefore resolve
it locally before looking up the web. The latter would fail any-
way in most cases. As an example, just point your browser to
something popular like http://java.sun.com/jstl/core or even
http://jakarta.apache.org/struts/tags-html-1.0 and enjoy the 404s,
some of them more stylish than others :-)
-- Chris
Scott Purcell schrieb:
I was told by my administrator, that I I take out entries from the web.xml file
and use the url from the jar file, and if the site that the url points to is
down, that the code will break.
If this could occur, is there a workaround for this situation?
Thanks,
Scott
-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 20, 2005 8:46 AM
To: Struts Users Mailing List
Subject: Re: TLD file placement
From: <[EMAIL PROTECTED]>
Sorry if I'm asking a basic question but I didn't know that you can just
use the tld files in the jar. You said "unless you're on Servlet 2.2..."
Does that mean that after Servlet 2.2 you can just use the tld files in
the
jar file?
Yes. http://wiki.wsmoak.net/cgi-bin/wiki.pl?WebXmlNoTaglib
If so, do I need to do anything special to tell Struts to look there or is
it enough to just take out the tld mappings from the web.xml file?
Nothing special. Use the correct URI, remove the tld files from under
WEB-INF, remove <taglib> from web.xml, and it Just Works. One less thing to
maintain. :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]