RE: Accessing a class file under WEB-INF/classes from JSP

2007-05-25 Thread Caldarale, Charles R
> From: Nelson, Tracy M. [mailto:[EMAIL PROTECTED] > Subject: RE: Accessing a class file under WEB-INF/classes from JSP > > I don't know if the package name is part of the compiled class, and > whether the classload checks it. It is, and it does. The fully qualified cla

RE: Accessing a class file under WEB-INF/classes from JSP

2007-05-25 Thread Nelson, Tracy M.
| From: Rajiv M [mailto:[EMAIL PROTECTED] | Sent: Wednesday, 23 May, 2007 13:41 | | 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... This is probably too simple, but can you simply c

Re: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread David Delbecq
hat >> seems to be the consensus "best practices" approach, which is why I >> think Sun discontinued it. >> >> anw >> >> > -Original Message- >> > From: Robert Soeding [mailto:[EMAIL PROTECTED] >> > Sent: Wednesday, May

Re: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Georg Sauer-Limbach
Hi, it is in the Java Server Pages 2.0 Specification: (http://jcp.org/aboutJava/communityprocess/final/jsr152/) "As of JSP 2.0, it is illegal to refer to any classes from the unnamed (a.k.a. default) package. This may result in a translation error on some containers, specifically those that run

Re: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Robert Soeding
> Subject: Re: Accessing a class file under WEB-INF/classes from JSP > > Does > <[EMAIL PROTECTED] import="YourClass"%> > work? > > Rajiv M wrote: > > Seems like with JDK 1.4, Sun has enforced classes belonging to the > > default package from bei

Re: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread David Smith
You have to package the classes and then refer to them by their fully qualified name -- ie javax.servlet.http.HttpServletRequest. This change was made a long time ago (tomcat 4.x?). The classes themselves have to be in either a jar file in WEB-INF/lib or in a folder structure mirroring the pa

Re: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Rajiv M
Sun discontinued it. anw > -Original Message- > From: Robert Soeding [mailto:[EMAIL PROTECTED] > 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 > <[EMAIL PROTE

RE: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Williams, Allen
Sun discontinued it. anw > -Original Message- > From: Robert Soeding [mailto:[EMAIL PROTECTED] > 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 > <[EMAIL PROTECTED] import=&quo

Re: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Rajiv M
No. This will again give class cannot be resolved to type error On 5/23/07, Robert Soeding <[EMAIL PROTECTED]> wrote: Does <[EMAIL PROTECTED] 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 J

Re: Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Robert Soeding
Does <[EMAIL PROTECTED] 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

Accessing a class file under WEB-INF/classes from JSP

2007-05-23 Thread Rajiv M
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 fi