File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes help bean! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "help bean!" Watch "help bean!" New topic

help bean!

Sandmax Fu

Joined: Dec 17, 2002
Posts: 5
org.apache.jasper.JasperException: Unable to compile class for JSPE:\TOMCAT\work\localhost_8080\ Class cou.counter not found. cou.counter cc = null;
Why don't I find my bean?
My bean file in:
My jsp file in :

SudhaPrakash Madanambedu

Joined: Aug 06, 2002
Posts: 2
Put your bean in TOMCAT\webapps\ROOT\web-inf\classes\cou dir.
This will solve your problem.

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

"sandmax sandmax",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Annina WG

Joined: Dec 12, 2002
Posts: 19
same question here!
I put my Bean under TOMCAT\webapps\ROOT\web-inf\classes\MyPackage dir
and my jsp under TOMCAT\webapps\ROOT\
there is no error message , but no result either.

in my servlet I add my Bean to the ServletContext,using:
records = new Records();
and in my JSP I access bean using:
<jsp:useBean id="records" class="MyPackage.Records" scope="application" />
System.out.println("here Show the records");
Vector v = records.getRecords();
int p = 0;
while(p < v.size()){
Servlet is in the same package as Beans'. I made no modification with any file to configure Tomcat.
Why I get no result?Could anybody tell what is going wrong?
I agree. Here's the link:
subject: help bean!
It's not a secret anymore!