Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

useBean

 
ramesh kumar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this entry in our JSP faq:
http://faq.javaranch.com/view?BeansNotFound

If it doesn't clear it up for you, post back with the exact location and source code of your bean.
 
reddy yeruva
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think you are not palaced the exact location which you have mentioned in the value of class, check it ...
 
Jobin Mathew
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic