Renato Bobbio Calogero wrote:
how should I test two String variables are the same , just like the Java "equals()" method ? Is this correct ?
Roy Pozarelli wrote:I've run across the issue that the subject spec does NOT list <web-fragment> and all of its elements like it does for <web-abb> (Figures/text). Is this anywhere?
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?
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>
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.
What calls this method ?
What passes a reference of type ServletContextEvent to the above method and why ?
So since browsers maintain session , new window of the same browser will also share the same session . However , a different browser altogether will create a new session... Right?
Could you explain (preferably with examples) how Request Attribute and Local variables are Thread Safe ?