bean not found in scope
1 posts in topic
Flat View  Flat View

Posted By:   Poonam_Gupta
Posted On:   Monday, July 22, 2002 02:49 PM

When would you get a bean not found within scope?

Re: bean not found in scope

Posted By:   Animesh_Srivastava  
Posted On:   Monday, July 22, 2002 05:37 PM

Are you using the tag in your jsp and getting something like "Cannot create Bean..." ?

If that is the case then it could mean that your Bean does not have no-argument constructor. To avoid this error you should either have a no-argument constructor (alongwith other constuctors containing arguments) or there should be no constructor at all (that means, a default empty constructor is implicit to the class.)

I guess that should answer it, provided my assumption about your using and getting the "Cannot create Bean... " error was right. But if this is not what you are getting, and if your question meant something else, do voice it.

About | Sitemap | Contact