Getting InstantiationException while using <jsp:useBean> -
can tell me exact meaning of type , class attributes of jsp:usebean
tag.?
getting exception instantiationexception while using them in application.
an extract docs,
the jsp:usebean element declares page use bean stored within , accessible specified scope, can application, session, request, or page. if no such bean exists, statement creates bean , stores attribute of scope object .
the value of id attribute
determines name of bean in scope , identifier used reference bean in el expressions, other jsp elements, , scripting expressions .
the value supplied class attribute
must qualified class name. note beans cannot in unnamed package. format of value must package-name.class-name.
instantiation exception thrown on many scenarios, when dont specify required values attributes of usebean
tag.
see also
Comments
Post a Comment