You might want to take a look at the Jakarta Struts framework:

http://jakarta.apache.org/struts/

It's an MVC-based framework which is based on a single-servlet controller.
The User's Guide on the web site (which is listed under Old Documents, for
some reason) should help you understand how all this works.

--
Martin Cooper
Tumbleweed Communications

----- Original Message -----
From: "Phil Hedley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 07, 2000 1:54 AM
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