aspose file tools *
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp:usebean