tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajiv M" <rmadasser...@gmail.com>
Subject Re: Accessing a class file under WEB-INF/classes from JSP
Date Wed, 23 May 2007 18:41:24 GMT
<jsp:useBean class="<classname>".... does not help either. Same error
- classname cannot be resolved to a type.

Of course, adding package solves all the problems. But what can be
done to modify 3rd party classes already in WEB-INF/classes prior to
this Sun restriction...

On 5/23/07, Williams, Allen <awilli08@harris.com> wrote:
> 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
>
>


-- 
~~~Truth is out there.~~~

---------------------------------------------------------------------
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