File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Business delegate pattern understandin from HFSJ

 
Brijesh shah
Ranch Hand
Posts: 92
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Pie
Posts: 2166
57
Android Chrome Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic