Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 90198 invoked from network); 5 Dec 2006 22:39:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2006 22:39:58 -0000 Received: (qmail 13667 invoked by uid 500); 5 Dec 2006 22:40:04 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 13145 invoked by uid 500); 5 Dec 2006 22:40:02 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 13134 invoked by uid 99); 5 Dec 2006 22:40:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 14:40:02 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [206.123.111.90] (HELO mail.loukasmgmt.com) (206.123.111.90) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2006 14:39:50 -0800 Received: (qmail 9819 invoked by uid 510); 5 Dec 2006 16:39:29 -0600 Received: from unknown (HELO ?192.168.1.3?) (smtp@loukasmgmt.com@71.252.229.244) by mail.loukasmgmt.com with SMTP; 5 Dec 2006 16:39:29 -0600 Message-ID: <4575F51A.4090904@hanik.com> Date: Tue, 05 Dec 2006 16:39:22 -0600 From: Filip Hanik - Dev Lists User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Beans without packages in JSP files References: <4575C6E4.2000603@hanik.com> <4575EDFB.90204@hanik.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Yoav Shapira wrote: > Hi, > > On 12/5/06, Filip Hanik - Dev Lists wrote: >> I'm not talking about >> import A; >> >> I'm talking about simply using A in the JSP >> >> <%=A.test()%> without using an import, >> >> This doesn't work, cause our JSP page gets packaged as >> org.apache.jsp. and our code adds that before it tries to >> resolve A > > I apologize, I guess I wasn't clear ;) > > First of all, this is not new stuff at all. It's been in our FAQ > (http://tomcat.apache.org/faq/classnotfound.html) for at least a > couple of years. What made you bring it up now? Just ran into an issue where this was the case, made me look into the code to see how A got resolved, basically, it tries to load org.apache.jsp..A. if A was not identified by a import statement and sits in a package. This is an app that runs om Tomcat 3, where it is working just dandy :) I hadn't realized that it had changed on the javac level to not work on this, thanks for pointing it out. > > In your example, what does "simply using A in the JSP" mean? What > does it look like in the compiled servlet that the JSP is turned into? > You have to resolve it to *some* package. Are you saying the current > code assigns a default org.apache.jsp package *before* doing this > resolving? I doubt that's the case, or everyone's beans that are not > in org.apache.jsp would break... Nope, just if it doesn't belong in a package already. Then it will guess that the prefix should be the package that the JSP is in. I'm over it, scratch everything I said, this conversation never happened. Filip --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org