The value for the useBean class attribute DataObj is invalid.

Here is my JSP :

<jsp:useBean id = "data" class="DataObj" scope = "session" />

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

<html>

<body>.................

............................................................

Now DataObj is a class which contains getter setters and a blank constructor . Everything is public .

When From my first Jsp page I try to call the above pasted JSP I am given an Error stating " The value for the useBean class attribute DataObj is invalid. " .... If instead of DataObject I use something like java.util.Date then everything works fine but not for my class... I have the both the JSPs and the class ( u can call it servelet ) in the same folder. Please guide me if I am going wrong .....

[794 byte] By [Rohan.Desaia] at [2007-10-2 20:21:56]
# 1
Just to add.... I am using Appache Tomcat 5.0
Rohan.Desaia at 2007-7-13 23:04:31 > top of Java-index,Desktop,Developing for the Desktop...
# 2

Just to inform u that the problem is solved ......

For those interested ...I kept my java file in the folder

WEB-INF --> classes -- > package -- > .java file..

Initially I was using WEB-INF > classes > .java file .... so it was not able to find the .java class file .....

Rohan.Desaia at 2007-7-13 23:04:31 > top of Java-index,Desktop,Developing for the Desktop...
# 3
Try the following forum (about JSP technology) http://forum.java.sun.com/forum.jspa?forumID=45
UncleSAMa at 2007-7-13 23:04:31 > top of Java-index,Desktop,Developing for the Desktop...