tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Williams, Allen" <awill...@harris.com>
Subject RE: Accessing a class file under WEB-INF/classes from JSP
Date Wed, 23 May 2007 17:39:21 GMT
Or, <jsp:usebean ...>, but I don't know if that works with the default
package.  Why don't you put the classes in a package?  Although I
haven't been doing this web programming stuff myself very long, that
seems to be the consensus "best practices" approach, which is why I
think Sun discontinued it.

anw

> -----Original Message-----
> From: Robert Soeding [mailto:robert.soeding@gmx.net] 
> Sent: Wednesday, May 23, 2007 12:51 PM
> To: Tomcat Users List
> Subject: Re: Accessing a class file under WEB-INF/classes from JSP
> 
> Does
> <%@page import="YourClass"%>
> work?
> 
> Rajiv M wrote:
> > Seems like with JDK 1.4, Sun has enforced classes belonging to the
> > default package from being imported in JSP. Is the only way 
> to resolve
> > the problem is to include classes under a package and then 
> import the
> > package in JSP?
> >
> > Or is there some way in Tomcat which can cause JSP to 
> access the class
> > files from WEB-INF/classes directory
> >
> > 
> ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message