my dog learned polymorphism
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes usebean query Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "usebean query" Watch "usebean query" New topic
Author

usebean query

yeshwanth reddy
Ranch Hand

Joined: Mar 10, 2006
Posts: 38
Hi all,

I have a doubt on page 416 (or 356) of hfsj. It is given that the third code snippet works fine. But how can it work when the person attribute is not in the page scope(it is in the request scope).It should throw the same error as the first one.

And is it not necessary to have a class in the useBean tag(or is the bean using the instance of employee created by the servlet itself?)

My understanding of usebean is: usebean is used to get the object which is stored in the attribute and get and set properties are used to set the properties in the object corresponding to the usebean.Please correct me if i am wrong.

Regards,
Yeshwanth
georgy jacob
Ranch Hand

Joined: Nov 23, 2005
Posts: 53
Please refer the errata section for HFSJ
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: usebean query
 
Similar Threads
useBean doubt??
Scope Attribute for jsp:set and jsp:get
HFSJ - Doubt
Using Session Bean Info in a server
jsp:useBean type requirements