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

Problem running JSP

Nithya Venkatraman
Ranch Hand

Joined: Apr 11, 2004
Posts: 39
Hi

I have a JSP page called upload documents which uploads docs based on the project to which they belong. These project names were initially hardcoded and I am trying to remove that. I have a class SuperProjectBean to help me fetch the project names.
But when i add an instance of that class in this jsp and try to run it throws errors.
There is no problem with this SuperProjectBean - I have used it in another jsp already.

SEVERE: Error compiling file: /C:/j2sdk1.4.2_04/jre/Tomcat 5.0/work/Catalina/loc
alhost/myproj//org/apache/jsp\uploaddocuments_jsp.java [javac] Compiling 1 s
ource file

C:\j2sdk1.4.2_04\jre\Tomcat 5.0\work\Catalina\localhost\myproj\org\apache\jsp\up
loaddocuments_jsp.java:49: cannot resolve symbol
symbol : class SuperProjectBean
location: class org.apache.jsp.uploaddocuments_jsp
SuperProjectBean sp = new SuperProjectBean();
^
C:\j2sdk1.4.2_04\jre\Tomcat 5.0\work\Catalina\localhost\myproj\org\apache\jsp\up
loaddocuments_jsp.java:49: cannot resolve symbol
symbol : class SuperProjectBean
location: class org.apache.jsp.uploaddocuments_jsp
SuperProjectBean sp = new SuperProjectBean();
^
2 errors

Please help


Nithya<br />SCJP(1.2), SCWCD(1.4)
danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
Nithya:

a. Have you add a <%@ page import="abc.ced.SuperProjectBean"%>
b. Is this bean's code accessible,ie., either beneath WEB-INF\classes folder or WEB-INF\lib


Dan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem running JSP