> 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
| 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
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
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
> 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
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
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
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
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
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
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
11 matches
Mail list logo