[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

error locating the class file by the jsp.

Posted on 2005-05-04
3
Medium Priority
?
230 Views
Last Modified: 2013-11-23
I have created a java bean and I imported the same in a jsp page. I get an error as servlet error and says that cannot resolve symbol ..the file name.

It cannot locate the class file. I have my class file in the package from which other beans are working properly.
Could someone please tell me what should I do. I also wanted to know when is the beans default constructor called. Is it when we import the class file or when we create an id for the bean or when some method is called...?
0
Comment
Question by:riteshromi
1 Comment
 
LVL 86

Accepted Solution

by:
CEHJ earned 80 total points
ID: 13931021
Make sure the class has been compiled in the correct package with the right declaration. Make sure you have no case errors in your jsp.

When you do <jsp:usebean ... the class instance will be looked for and if not found one is created
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
A solution for Fortify Path Manipulation.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses
Course of the Month19 days, 1 hour left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question