Originally posted by nikita sri:
That means, findAttribute() method is returning an empty value even when the street property is not set?
I think the street property might be set to its default values.
<jsp:useBean id="address" class="AddressBean" scope="session"/>
The above line of code looks for the bean in the session scope. If not found, it will create a new instance and put it in the session.
So if we are creating a new instance then instance variables are set to its default values.