Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 81747 invoked from network); 3 May 2004 21:29:17 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 May 2004 21:29:17 -0000 Received: (qmail 49181 invoked by uid 500); 3 May 2004 21:28:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 49135 invoked by uid 500); 3 May 2004 21:28:37 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 49055 invoked from network); 3 May 2004 21:28:37 -0000 Received: from unknown (HELO terragate.net) (217.160.133.107) by daedalus.apache.org with SMTP; 3 May 2004 21:28:37 -0000 Received: by terragate.net (Postfix, from userid 1016) id BADEF14202; Mon, 3 May 2004 23:28:42 +0200 (CEST) Received: from terragate.net (dsl-082-083-127-210.arcor-ip.net [82.83.127.210]) by terragate.net (Postfix) with ESMTP id 5E4B1141F9 for ; Mon, 3 May 2004 23:28:41 +0200 (CEST) Message-ID: <4096B99C.3070205@terragate.net> Date: Mon, 03 May 2004 23:29:00 +0200 From: =?ISO-8859-1?Q?Tomasz_Dre=DFler?= User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: de-de, de-at, de, en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: trouble with taglibs in xml syntax References: <40964C45.1070905@terragate.net> <1083593348.40965284488b6@internal.dotech.com> <40966F22.1020307@terragate.net> <1083601802.4096738a54c05@internal.dotech.com> In-Reply-To: <1083601802.4096738a54c05@internal.dotech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on terragate.net X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Level: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thank you for your pations! Kris Schneider schrieb: >As of JSP 1.2, the container makes packaged taglibs pretty easy to deal with. >For details, you really should check out the JSP spec (or get a decent book). >One of the things the container will do is inspect each JAR file in WEB-INF/lib >and look for TLD files in their /META-INF dirs. If a TLD contains a >element, then an implicit element is automatically created. Most >packaged taglibs will document their official URIs, but you can always inspect >the TLD files if you need to. > >As for whether or not to use the element, that's totally up to you. I >just wanted to mention that you don't have to use it. An abbreviated example >from the JSP 2.0 spec: > > xmlns:jsp="http://java.sun.com/JSP/Page" > xmlns:c="http://java.sun.com/jsp/jstl/core"> > ... > > >Quoting Tomasz Dre�ler : > > > >>Thank you for your answer. >>It works. Can you help me understand why :) >>Someone looks in all jar's for >>'http://jakarta.apache.org/struts/tags-bean' namespace? >>When I am use JSP 2.0 what I sould take instead of element? >>I use tiles so I can't take as root element. >> >>Greetings >> >> >>Kris Schneider schrieb: >> >> >> >>>Try: >>> >>>xmlns:bean="urn:jsptld:/WEB-INF/tags/struts-bean.tld" >>> >>>But since JSP 1.2 you really don't need separate TLD files for packaged >>> >>> >>taglibs >> >> >>>(like Struts and JSTL). This should also work: >>> >>>xmlns:bean="http://jakarta.apache.org/struts/tags-bean" >>> >>>Then you can remove the TLD files from your app as well as the >>> >>> >>elements >>>from your web.xml. Also note that as of JSP 2.0 you don't have to use >> >> >>> for your document's root element. >>> >>>Quoting Tomasz Dre�ler : >>> >>> >>> >>> >>> >>>>Hi! >>>>I have problems to use the struts taglibs in jsp with xml syntax. >>>> >>>>When I use >>>> <%@ taglib uri="/WEB-INF/tags/struts-bean.tld" prefix="bean" %> >>>>the generated servlet contains the line >>>>'_jspx_dependants.add("/WEB-INF/tags/struts-bean.tld")' >>>>and everything is ok. >>>> >>>>But with the following syntax the line >>>>'_jspx_dependants.add("/WEB-INF/tags/struts-bean.tld")' disappeare >>>> >>>> >>>> >>> xmlns:jsp="http://java.sun.com/JSP/Page" >>>> xmlns:c="http://java.sun.com/jsp/jstl/core" >>>> xmlns:bean="/WEB-INF/tags/struts-bean.tld"> >>>> [...] >>>> >>>> >>>> >>>>I use Apache Tomcat/5.0.18 and I have modifyed my web.xml: >>>> >>>> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >>>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> >>>> [...] >>>> >>>> >>>> >>>>Any Idea? >>>> >>>>Tomek >>>> >>>> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org