jsp & useBean

hi,

my project hierarchy looks like his-

1--ProjectFolder

2-JspPage.jsp

2-WEB_INF

3classes

4BeanClass.java

in jsp file i wrote-

<jsp:useBean id="id1" class="ProjectFolder.BeanClass" scope="session"/>

but im getting the error-

"package ProjectFolder does not exists"

so i tried to write just --> class="BeanClass"

but then i get the error-

"cannot resolve symbol" , and he is pointing me to line saying-

BeanClass id1=null;

what is the problem?

thanks in advanced.

[579 byte] By [ppl1a] at [2007-10-3 7:55:23]
# 1

Did you just put the java sourcefile in the classes directory or the compiled .class file? Because you need the .class file. Also you may need to give the class a package before you can use it from a JSP.

Just for reference: "cannot resolve symbol" means that Java cannot find the specified class anywhere in its classpath. This tends to be the result of a misplaced .class file or a typo in the class name / package name.

gimbal2a at 2007-7-15 2:57:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...