Meaningless Drivel is fun!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Business delegate pattern understandin from HFSJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Business delegate pattern understandin from HFSJ" Watch "Business delegate pattern understandin from HFSJ" New topic
Author

Business delegate pattern understandin from HFSJ

Brijesh shah
Ranch Hand

Joined: Mar 16, 2007
Posts: 90
Hi all,

I am going through HFSJ( second edition) for SCWCD preparation. While learning Business delegate pattern on page number 757 wherein I have some queries.

On Fifth step,The controller forwards request to the View JSP. The JSP gets a reference to the Customer bean (stub) from the request object. According to this, view is retrieving its desire request from remote object through stub, then why we would require another sixth step where JSP uses EL to get the Customer Bean properties to satisfy the original request???

Appreciate your answer for my better clarity.

Thank you.

--
Brijesh
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1665
    
  25

Hi,

then why we would require another sixth step where JSP uses EL to get the Customer Bean properties to satisfy the original request???

I am not sure whether I understand your question well, but you need that step because you didn't send the Customer Bean (object) on your request, but just the reference (address) to the Customer Bean. You don't have the properties on your request (unless you do a setAttribute() on all the properties)

Regards,
Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Business delegate pattern understandin from HFSJ