java beans error

Hi all please help me in this

part of my jsp page where bean is including is like this

<jsp:useBean id="customer" class="labs.jspbeans.CustomerBean"

scope="session">

<jsp:setProperty name="customer" property="*" />

</jsp:useBean>

This jsp file is inside the folder labs which is my project folder

the bean is inside the folder labs/jspbeans and looks like this

package labs.jspbeans;

public class CustomerBean {

--

}

While running the page i am getting an error

org.apache.jasper.JasperException: /welcome.jsp(5,0) The value for the useBean class attribute jspbeans.CustomerBean is invalid.

please help me in fixing this

[723 byte] By [codename47a] at [2007-11-27 11:02:44]
# 1

Change this:

<jsp:useBean id="customer" class="labs.jspbeans.CustomerBean"

scope="session">

<jsp:setProperty name="customer" property="*" />

</jsp:useBean>

to:

<jsp:useBean id="customer" class="labs.jspbeans.CustomerBean"

scope="session">

</jsp:useBean>

<jsp:setProperty name="customer" property="*" />

Ie, I think the setProperty belongs after the useBean, not within it.

George123a at 2007-7-29 12:45:16 > top of Java-index,Java Essentials,New To Java...