• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp:useBean question  RSS feed

 
Ashwin Kumar
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the Bean doesn't have parameterless contructor - Is it compile time error or runtime ?

In some mock exams it is stated as compile time error and somewhere it is Instantiation Exception is thrown(runtime). Please clarify.
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Root cause:
java.lang.NoSuchMethodError: com.examples.beans.Person: method <init>()V not found



Thanks,
[ June 13, 2007: Message edited by: Chandra Bhatt ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!