aspose file tools*
The moose likes JSP and the fly likes useBean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "useBean" Watch "useBean" New topic


ramesh kumar

Joined: Aug 15, 2006
Posts: 25
Hai All,

I used <jsp:useBean id="lf" class="com.login.LoginForm"/> in my code but i am getting error as value under class attribute is not valid.
I compiled LoginForm class and kept in classes folder then why i am getting this error.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

See this entry in our JSP faq:

If it doesn't clear it up for you, post back with the exact location and source code of your bean.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
reddy yeruva

Joined: Oct 18, 2006
Posts: 18
i think you are not palaced the exact location which you have mentioned in the value of class, check it ...

Y.Tirupati Reddy<br />
Jobin Mathew
Ranch Hand

Joined: Oct 17, 2006
Posts: 83
Put the class according to the package structure.

ie your LoginForm.class is in the folder login which is inside the foldr com.
Also com should be kept in classes
It is sorta covered in the JavaRanch Style Guide.
subject: useBean