• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem running a JSP page

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic