This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp:usebean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "jsp:usebean " Watch "jsp:usebean " New topic
Author

jsp:usebean

Savyatha Reddy
Greenhorn

Joined: Jun 10, 2008
Posts: 14
When using "jsp:usebean", if the bean class does not have a public no arg constructor, then whicy type of error will occur? is it compilation error OR an instantiation exception?
Thanks in Advance
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Originally posted by Savyatha Reddy:
When using "jsp:usebean", if the bean class does not have a public no arg constructor, then whicy type of error will occur? is it compilation error OR an instantiation exception?


when you tried,what type of error you got?
Savyatha Reddy
Greenhorn

Joined: Jun 10, 2008
Posts: 14
I didnt have tried to execute the same.. In Whizlabs1.4 simulator, I faced with 2 questions relating to the same context as I mentioned. As answer for 1 question they had given Compilation error and as the answer for the other question, they had given Instantiation exception. So Iam confused..
Rufus Addis
Ranch Hand

Joined: Aug 21, 2008
Posts: 83
With the greatest of respect I would suggest you create yourself a simple bean without a public no arguments constructor, and see what happens then!

Rufus.
mimi chatterjee
Greenhorn

Joined: Dec 03, 2007
Posts: 26
there will be servlet error-Unable to compile class for JSP
 
 
subject: jsp:usebean