If you are lucky enough to choose a framework, I would look at the Jakarta
struts project. I am using it now and its very easy to work with, and does a
lot of nice things, including internationalization, auto-bean population,
single entry controller servlet, and more. Its free, open-source and
supported by sun/jakarta. jakarta.apache.org I think will take you there,
and on the left side look for Struts. Its pretty easy to set up if you have
a properly implemented Servlet 2.2 engine. I use Orion app server which I
feel is the best overall to use. Tomcat is good, but isn't an EJB/J2EE app
server, mostly a web/Servlet server. Resin is another good one, and I have
heard that JRUN 3.0 is ok for this too.

It does all the MVC for you, you write action classes that get passed 5
parameters and return a result. You use a single XML config file for every
action of your site, with one or more possible "forwarding" values that can
be used to forward to different JSP pages. It has done wonders in cleaning
up my code.


> -----Original Message-----
> From: maurice coyle [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 12, 2000 3: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