Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes JSPs and the Controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "JSPs and the Controller" Watch "JSPs and the Controller" New topic
Author

JSPs and the Controller

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1167
Good Day,

The J2EE pattern catalog shows the Front Controller in front of the View Helper which represents the JSP/Servlet. In Cade's diagrams the JSPs are in front of the controller. So, I'm a bit confused about the order of JSPs and the controller.

Any thoughts?

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Chandramouli Ram
Ranch Hand

Joined: Mar 07, 2005
Posts: 65
Hi Dan,

What you're probably referring to is the J2EE pattern catalog on one side and the sequence diagrams depicted in Cade's book on the other side.

Here is my perspective: Look at the sequence diagram, say for the Front controller pattern. The first one on left would be the "Client". The JSP's in Cade's sequence diagrams actually stand for that. On submission, they present the data to the controller for processing.
[ June 21, 2006: Message edited by: Ram Chandramouli ]

Thanks & Regards,<br />Chandramouli Ram
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSPs and the Controller
 
Similar Threads
Tomcat JSP URL Mapping
Does your book cover J2EE patterns
doubt on choosing the appropriate design pattern
Front Controller Servlet
Design Pattern at Struts