Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4134C9087 for ; Tue, 6 Dec 2011 23:51:59 +0000 (UTC) Received: (qmail 73950 invoked by uid 500); 6 Dec 2011 23:51:55 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 73758 invoked by uid 500); 6 Dec 2011 23:51:55 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 73749 invoked by uid 99); 6 Dec 2011 23:51:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 23:51:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.45] (HELO mail-qw0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 23:51:48 +0000 Received: by qadz30 with SMTP id z30so4233815qad.18 for ; Tue, 06 Dec 2011 15:51:25 -0800 (PST) Received: by 10.224.182.2 with SMTP id ca2mr3478724qab.57.1323215485410; Tue, 06 Dec 2011 15:51:25 -0800 (PST) Received: from [192.168.1.104] (c-69-141-32-207.hsd1.nj.comcast.net. [69.141.32.207]) by mx.google.com with ESMTPS id k1sm35091195qap.10.2011.12.06.15.51.19 (version=SSLv3 cipher=OTHER); Tue, 06 Dec 2011 15:51:24 -0800 (PST) Message-ID: <4EDEAA70.80404@poonam.org> Date: Wed, 07 Dec 2011 05:21:12 +0530 From: Kiran Badi Organization: www.poonam.org User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Tomcat Users List CC: Mark Eggers Subject: Re: How to I add JSTL Lib to Tomcat with Netbeans References: <4EDD7F36.4060507@poonam.org> <1323143585.99800.YahooMailNeo@web125506.mail.ne1.yahoo.com> In-Reply-To: <1323143585.99800.YahooMailNeo@web125506.mail.ne1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Mark, I have added the jars exactly the way you have given suggestions.but for some reasons <%@ taglib uri="..." %> is not getting created for my pages. Let me try to create a simple test case outside the project and see if it is installed correctly. On 12/6/2011 9:23 AM, Mark Eggers wrote: > ----- Original Message ----- > >> From: Kiran Badi >> To: Tomcat Users List >> Cc: >> Sent: Monday, December 5, 2011 6:34 PM >> Subject: How to I add JSTL Lib to Tomcat with Netbeans >> >> Hi >> >> I have jstl-api-1.2 and jstl-impl-1.2 jars in web/lib folder for my project >> setting.Is this the right setting to add JSTL jars or I need to add this to >> tomcats's lib directory ? >> >> I am using netbeans 7.01 with tomcat 7.0.11 on windows 7.For some reasons I feel >> that jstl lib is not used by my app and jstl tags are getting ignored. >> >> Can someone point me to right way to add jstl lib with tomcat ? >> >> Thanking you >> Kiran Badi > > In Netbeans, you don't add jar files directly to WEB-INF/lib of your project. Netbeans does this for you when you build the war file. > > If you're running a regular Netbeans (ant) project, then do the following: > > 1. Right-mouse click on the Libraries node of your project > 2. Select Add libraries > 3. Scroll down until you see the JSTL library > 4. Select it and add it > > This will add both the standard tag jar and jstl jar to your project. Netbeans will complete<%@ taglib uri="..." %> for you as well as all the tags once you add the taglib line to your JSP file. > > If you're running a Maven project, then you need to edit your pom.xml file. The two dependencies go in the dependencies element and will be built into your war file under the target directory. > > Again, once Netbeans knows the libraries are a part of your project (sometimes you have to refresh the project) code completion will work as expected. > > In both cases, everything works as expected on the server. > > This is my normal (occasional) development environment: > > Platform: Windows/XP Professional SP 3 or Fedora 15 > JVM: JRE/JDK 1.6.0_29 > Maven: 3.0.3 > Servers: Tomcat 5.5.34, Tomcat 6.0.33, Tomcat 7.0.22, Glassfish 3.1 > > Given my limited use, this works pretty well. > > just my two cents . . . . > /mde/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org