Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

where do i put the bean?

 
Soum Sark
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
I am having problems running a jsp with a bean.
the jsp is placed in the directory
C:\Tomcat\webapps\ROOT
and the bean in the directory
C:\Tomcat\webapps\ROOT\WEB-INF\classes
classpath looks like this
CLASSPATH=C:\jdk1.3.1\bin;c:\Tomcat;c:\javaFiles;C:\Tomcat\webapps\ROOT\WEB-INF\
classes;C:\Tomcat\webapps\ROOT
when i trying running the *.jsp with the bean it gives an exception report and indicates
org.apache.jasper.JasperException: Unable to compile class for JSP
mainly showing that it cannot find the bean class file..
what am i doing wrong here?
tx
 
Raj Paul
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
see that u import the bean in ur jsp file.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!