Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem running JSP

 
Nithya Venkatraman
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
danny liu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic