Hi

The method that most servlets override is service or doGet or doPost.  You
only need to implement the methods that you see fit for the purpose of the
servlet.  Implementing them all is not required !!

Lee

> -----Original Message-----
> From: maurice coyle [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, September 12, 2000 11:56 AM
> To:   [EMAIL PROTECTED]
> Subject:      Model 2 Servlet Design
>
> hi,
> i have a jsp application in development.  i have come to the conclusion
> that a model 2 (Model-View-Controller) architecture, as currently i have
> too many scriptlets that are too long in my jsp page.
>
> anyway, my question is concerning the interface aspect of writing
> servlets.  do i have to provide implementations for each of the init(),
> service(), destroy(), getServletConfig() and getServletInfo() methods?
> i realise i need the init() method, but in example is have seen, most
> people implement a doPost() method instead of all the rest.  if this is
> just the technique of these programmers, does this mean that all i need
> is an init() method and then whatever other processing i require?
>
> hope my question isn't too unclear.
> thanks,
> --
> Maurice Coyle.
>
> ==========================================================================
> =
> 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