Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Business delegate pattern understandin from HFSJ

 
Brijesh shah
Ranch Hand
Posts: 92
  • 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: 2414
95
Android Chrome Eclipse IDE
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic