Re: Problem with importing package in JSP

2001-05-28 Thread Christopher Benson

Kris,

You're missing the @ sign.  You wrote:

% page import=3Dpackage.name.* %

It should be:

%@ page import=3Dpackage.name.* %

Take care,
Christopher Benson




Re: Problem with importing package in JSP

2001-05-26 Thread Chris Janicki

Is it possible your Classname is not unique?... there might be a name 
conflict with another class of the same name (in some other package).

 Original Message 

On 5/26/01, 5:14:20 AM, Kris Gonzalez [EMAIL PROTECTED] wrote 
regarding Problem with importing package in JSP:


 I've got a strange situation with my JSP not accessing classes in a
 package properly.  When i use the % page import=package.name.* %
 notation and try referencing the class by name, I get an unable to
 create a bean of class Classname compiler error.  This problem is
 solved if I refer to the Class with the entire package notation
 (eliminating the need to import the package at all).

 Also, if I delete the import statement altogether, the compiler error
 changes to Class not found, meaning it's obviously finding the class
 when I import the package but will not create and instance unless I
 refer to the class with its entire package notation.

 This error only occurs for the package which I've created.  I'm able to
 successfully import other packages into the JSP and reference its
 classes directly w/o the entire package path.

 Any and all help is appreciated!!!
 -kg