Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts project

 
Ingoba Ningthoujam
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what may be the possible reason for error FORM BEAN CANNOT BE CREATED?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are some possible reasons:

1- A simple spelling error. Are you 100% sure that the type you specified in the <form-bean> tag exists and is spelled correctly including the package name?

2-Failure to compile the class. Maybe the .java file exists, but does the .class file? Is it in WEB-INF/classes?

3-No public constructor. Have you overriden or made non-public the default no-arguments constructor for the bean?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic