tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Help in configuring Taglibs
Date Mon, 21 Jan 2002 17:38:38 GMT


On Mon, 21 Jan 2002, Scott Ahten wrote:

> Date: Mon, 21 Jan 2002 00:14:40 -0500
> From: Scott Ahten <pixel@pixelfreak.net>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: Re: Help in configuring Taglibs
>
> for some reason, it's trying to find the classes in the jsp namespace,
> which is 'org.apache.jsp.'
>

This package name happens to be what Tomcat 4 uses for all generated JSP
pages.  Don't know if this is your problem, but if you try to reference a
bean class that is not in a package, you *must* explicitly import it in
the page:

  <%@ page import="Organization" %>

to successfully find an unpackaged bean class named "Organization".
Otherwise, the JSP page compiler follows the standard rules that javac
uses, and assumes that an unnamed class is in the same package that the
program being compiled lives in -- and that is not the case here.

Craig


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message