The future belongs to those who believe in the beauty of their dreams.Dream BIG!
I am getting confused with the terms Property and Attribute of JavaBean.
So a Java Bean Person has a property address would mean it has a getAddress() and setAddress() methods.
OCPJP 6, OCE Java EE 6 JSP and Servlets Developer, OCE Java EE 6 EJB Developer...
and how we arrived the answer?
A. ${sessionScope.customer.address.city = param.city}
B. <c:set target="${sessionScope.customer.address)" property="city" value="${param.city"} />
C. <c:set scope=session var="${customer.address}" property="city" value="${param.city"} />
D.<c:set target="${sessionScope.customer.address}" property="city"> ${param.city"} </c:set>
OCPJP 6, OCE Java EE 6 JSP and Servlets Developer, OCE Java EE 6 EJB Developer...
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Thanks for all the time you have spent on the explanation . it helped !
I do have a question , regarding "customer"
So Customer is an instance of a Person.
${sessionScope.customer.address}
Which address is being mentioned here , is the Java Bean Address -OR- Person property address?
And if it's the Person property address , how is it accessing "city" which is a property of the Java Bean Address?
OCPJP 6, OCE Java EE 6 JSP and Servlets Developer, OCE Java EE 6 EJB Developer...
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |