Phil - another reason for the Controller in that MVC architecture is when
everyone is hitting the web with WML-enabled devices, all you need is to
redirect the WML users to the proper corresponding WML pages for each of the
HTML pages.
This would be a simple code change in the Controller.

If you attempt to control user page flow OUTSIDE of the controller, a change
such as this could be a nightmare to implement.

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Phil Hedley
> Sent: Tuesday, November 07, 2000 4:55 AM
> To: [EMAIL PROTECTED]
> Subject: Servlet Controller - a few questions
>
>
> Can someone give me a simple example of a servlet controller as
> stated in the
> MVC model.
> I've had a (very quick) look at the pet store example in the J2ee javasoft
> blueprints which seems to be very complicated for what it is doing.
>
> In my mind a controller is something that understands what should
> come next.
> In the examples I have seen so far, the controller is given the
> name of the next
> page it should forward the request to. It is the beans (business
> logic) that
> determine what comes next. The controller servlet seems to be
> used as a gateway
> to the jsp pages - is this for security ?
>
> Would a web-application with hundreds of jsp pages have a sinlge servlet
> controller ? or would there be a single servlet controller
> handling the pages
> for each function of the web-application ?
>
> Thanks,
> Phil Hedley
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to