Selvaraj.S<br />SCJP 1.4 -83%<br />SCWCD 1.4 - 85%<br />SCEA 4 Part 1(310-051) - 89%
God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
If the object is not found in the specified scope and neither class nor beanName
are given, a java.lang.InstantiationException shall occur. This completes the
processing of this jsp:useBean action.
SCJP 5 - SCWCD 1.4 - SCBCD 1.3 - Certification study documents/resources: http://esnault.frederic.free.fr/certification
God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
SCJP 5 - SCWCD 1.4 - SCBCD 1.3 - Certification study documents/resources: http://esnault.frederic.free.fr/certification
God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
Selvaraj.S<br />SCJP 1.4 -83%<br />SCWCD 1.4 - 85%<br />SCEA 4 Part 1(310-051) - 89%
Originally posted by Vinod NS:
Sorry i did'nt get the concept clear.
Please have a look at this code
<jsp:useBean id="person" type="servlettest.Person" scope="request"/>
<jsp:getProperty name="person" property="name"/>
This method displays the name property of the bean object 'person'.
Here i have used 'type' without a class but the type is not an abstract class and the bean object (bean name) exists in the request scope.So my conclusion is, if type is used alone...the bean object must exist and the type must not be abstract and have a no arg constructor.
Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Originally posted by Vinod NS:
Sorry i did'nt get the concept clear.
Please have a look at this code
<jsp:useBean id="person" type="servlettest.Person" scope="request"/>
<jsp:getProperty name="person" property="name"/>
This method displays the name property of the bean object 'person'.
Here i have used 'type' without a class but the type is not an abstract class and the bean object (bean name) exists in the request scope.So my conclusion is, if type is used alone...the bean object must exist and the type must not be abstract and have a no arg constructor.
please correct me it is wrong.
SCJP 5 - SCWCD 1.4 - SCBCD 1.3 - Certification study documents/resources: http://esnault.frederic.free.fr/certification
God Gave Me Nothing I Wanted<br />He Gave Me Everything I Needed<br /> - Swami Vivekananda
SCJP 5 - SCWCD 1.4 - SCBCD 1.3 - Certification study documents/resources: http://esnault.frederic.free.fr/certification
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|