my question it that useBean has a body which contains setProperty. this body runs CONDITIONALLY if there is no attribute with the name "person" in the page scope. so lets say that there IS an attribute with the name "person" in the page scope. in that case the body of useBean tag won't run and hence there WONT be any setting of the name property of person object as is said in above lines from the book. am i right ? am i missing something ? please help
Stefan Evans wrote:Your interpretation is correct.
You do not appear to be missing anything.
The tags nested within a useBean tag are executed only when it is instantiating the bean.
thanks. but the book says that param attribute helps in set the value of a property to request parameter. but if the person attribute already exists in the given scope the set property tag won't even run and hence the param attribute wont be able to set the property. so this means only if person attribute is NOT in the scope does above statement has meaning. but the book makes a statement that param attribute sets the property.
subject: deciphering param attribute in setProperty jsp action?