I Came across this question in one of the J2EECertification.com exam
Which of the following are valid declarations in a
JSP page? [Check all correct answers]
The correct answer is:
1. <jsp:getProperty Name="id" Property="streetName"/>
2. <jsp:getProperty property="streetName" name="id"></jsp:getProperty>
3. <jsp:getProperty name="id" class="com.baboon.scwcd.Address" property="streetName"/>
4. <jsp:getProperty name="id" property="streetName"/>
5. <jsp:getProperty property="streetName" name="id"/>
I answered 2,4,5
but the sites says the correct answers are 4,5
Is the option 2 invalid? if yes then y so?
Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)