I think this could be done either way. Of course it all depends on the
application (I hate it when I hear this but it is true). For example:

I have a few JSP's that make up a web interface.

I have a servlet that does connections to a database and take parameters from
the JSP. This could be considered as:

JSP's = View
Servlet= Controller
Database=Model

Hope this helps. I would really like to hear any other responses you get from
others as I am somewhat rusty on this as well.

Ryan Richards
Software Developer
Atkins-Benham - (405) 478-5353
http://www.atkinsbenham.com





-----Original Message-----
From:    Phil Hedley [EMAIL PROTECTED]
Sent:    Tue, 7 Nov 2000 09:54:56 +0000
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



___________________________________________________________________________
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.

===========================================================================
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