I encounter a question on j2eecertificate and I don't understand the answer.
Which of the following are valid declarations in a
JSP page? [Check all correct answers]
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"/>
Answer is 4) and 5).
But why not 2)? 2) and 5) are the same, right?
Kelvin
[ January 15, 2004: Message edited by: Kelvin Hung ]