aspose file tools*
The moose likes JSP and the fly likes Error : Package does not exist Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Error : Package does not exist" Watch "Error : Package does not exist" New topic
Author

Error : Package does not exist

sumana ar
Greenhorn

Joined: Aug 06, 2003
Posts: 28
hai friends..
i'm trying to connect to the database using jdbc-odbc bridge..that worked fine when i wrtie the code in a .java file and run it at the command prompt..but when i called that java file as a bean in the jsp ..i'm getting an error...package does not exist.
i've my .class file placed in
C:\Program Files\Apache Group\Tomcat\webapps\myfirstapp\WEB-INF\classes\test\userdata.class
where test is the name of the package.
my .jsp file placed in
C:\Program Files\Apache Group\Tomcat\webapps\myfirstapp\
From my .jsp file I tried to call the bean:
<jsp:useBean id="emp" scope="page" class="test.userdata" />

please help me where i'm doing an error...do i need to set any CLASSPATH for running this JSP
thanks in advance
--sumana
Rangarajan Suresh
Ranch Hand

Joined: Jan 08, 2002
Posts: 50
Originally posted by sumana ar:
hai friends..
i'm trying to connect to the database using jdbc-odbc bridge..that worked fine when i wrtie the code in a .java file and run it at the command prompt..but when i called that java file as a bean in the jsp ..i'm getting an error...package does not exist.
i've my .class file placed in
C:\Program Files\Apache Group\Tomcat\webapps\myfirstapp\WEB-INF\classes\test\userdata.class
where test is the name of the package.
my .jsp file placed in
C:\Program Files\Apache Group\Tomcat\webapps\myfirstapp\
From my .jsp file I tried to call the bean:
<jsp:useBean id="emp" scope="page" class="test.userdata" />

please help me where i'm doing an error...do i need to set any CLASSPATH for running this JSP
thanks in advance
--sumana

you dont need to set CLASSPATH for classes located in your web-apps WEB-INF\classes folder.
Just make sure whether you have imported the package/class and give the exact compilation error that you get.
dimpsonu arora
Ranch Hand

Joined: Aug 13, 2003
Posts: 51
Hi,
I think there is no trouble with your program.Make sure that other simple beans are running on your system.If yes then I don't get the trouble.If not then use the newer version of tomcat.
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error : Package does not exist