RE: TLD file placement
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. :) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLD file placement
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]
Re: TLD file placement
From: Scott Purcell [EMAIL PROTECTED] 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. It's not a URL, it's a URI. :) None of the URIs for the Struts tag libraries points to a file on the internet. For example: http://struts.apache.org/tags-html The official answer is found in the JSP Specification, which you can get here: http://www.jcp.org/aboutJava/communityprocess/final/jsr053/ Section JSP.7.3 talks about how the tld files are mapped, which is by first loading the ones specified in web.xml, and then adding any that it finds in the META-INF directory of a .jar file. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TLD file placement
Wendy, I'm curious about your comment about Servlet 2.2 and placement of tld files. 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? 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? Thanks! David Wendy Smoak [EMAIL PROTECTED] com To Struts Users Mailing List 10/19/2005 10:35 user@struts.apache.org PM cc Subject Please respond to Re: Strange Struts tld problem Struts Users Mailing List [EMAIL PROTECTED] he.org From: Koon Yue Lam [EMAIL PROTECTED] Assume I have 2 jsp(s), header.jsp and content.jsp In content.jsp, I include header.jsp like the following: %@ include file=../common/Header.jsp % The include isn't working. Possibly because your file is named 'header.jsp' and you're including 'Header.jsp', (watch the case!) or possibly because it isn't where you think it is relative to content.jsp. In addition, unless you're on Servlet 2.2, you don't need to put the tlds under WEB-INF and map them in web.xml. Just use the URIs such as %@ taglib uri=http://struts.apache.org/tags-html; prefix=html % and the tld file that's in struts.jar will be used. -- Wendy Smoak - The information contained in this message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately, and delete the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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. :) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLD file placement
Fantastic. Thank you so much! David Wendy Smoak [EMAIL PROTECTED] com To Struts Users Mailing List 10/20/2005 09:45 user@struts.apache.org AM cc Subject Please respond to Re: TLD file placement Struts Users Mailing List [EMAIL PROTECTED] he.org 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. :) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - The information contained in this message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately, and delete the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]