• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

doubts in design pattern

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have red this qustion from javabeat site.
Business delegate pattern should be used to enable communication between the JSP code and the enterprise javabeans.
Options.
A.True
B.False
For this my answer is "B".Because Business delegate design pattern is "Reduces coupling between presentation and business tiers".In fourm they said "A" is the correct answer please any body explain me about this question.


Thanks and regars
NareshGovindaswamy

 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by naresh govindaswmay:
hi,
I have red this qustion from javabeat site.
Business delegate pattern should be used to enable communication between the JSP code and the enterprise javabeans.
Options.
A.True
B.False
For this my answer is "B".Because Business delegate design pattern is "Reduces coupling between presentation and business tiers".In fourm they said "A" is the correct answer please any body explain me about this question.


Thanks and regars
NareshGovindaswamy



Answer A is correct. Though you can directly connect the EJB through JSP. It is better to delegate the lookup codes and EJB access code from the JSP to business delegate. JSP meant for the presentation.

Thanks
 
naresh govindaswmay
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Thanks

Thanks and regards
naresh govindaswamy
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to take that a step further and say that a JSP typically shouldn't be talking to a Business Delegate. In most cases, the controller class should be responsible for dealing with the Business Delegate(s) and then place some resulting data in request or session scope for the JSP to render for display.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Yes. You are perfectly right. The Controller or View Helper will take this responsibility in the MVC design.

Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic