• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem running a JSP page  RSS feed

 
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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the code in your JSP page where you are using SuperProjectBean? It would help to see what JSP code is causing the error.

Are you remembering to import the bean class (if you're using scriptlets) or specify the bean class (if you're using the useBean tag)?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!