tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Layman <randy.lay...@aswethink.com>
Subject RE: static class and JSP
Date Wed, 12 Sep 2001 14:28:47 GMT

	You need to import the class using <%@ page import="class name here"
%> at the top of your file.  This works like regular java imports, except
the import attribute can be comma delimited (or there can be multiple
imports, or both) and you must import all classes (the default package is
not imported for you).

	Randy

> -----Original Message-----
> From: JBrawner@silenus.com [mailto:JBrawner@silenus.com]
> Sent: Wednesday, September 12, 2001 10:49 AM
> To: tomcat-user@jakarta.apache.org
> Subject: static class and JSP
> 
> 
> Upon tomcat being started, I have a servlet populate a static 
> class with
> configurations that are used by other servlets when they are 
> invoked.  This
> works great!  But, now I'd like to have my JSP's use this 
> static class but
> I'm getting the "Undefined variable or class name" error on 
> the JSP.  How
> do I tell the JSP's where this file is?  It is in the web-inf/classes
> directory with my other servlets.
> 
> Thanks,
> 
> Jason E. Brawner
> 
> 

Mime
View raw message