On Thu, 6 Sep 2001, echaiguer abderrahim wrote:
> Date: Thu, 06 Sep 2001 18:01:24 +0200
> From: echaiguer abderrahim <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Cc: echaiguer abderrahim <[EMAIL PROTECTED]>
> Subject: Re: newbie question
>
>
> Hi Craig
>
> I benefit you answer that mail to mention that I really find the doc for
> Tomcat confusing and really easy to follow.
> Compare to Jserv this is just a massive task you know. Jumping to
> the Tomacat world is full time job that why I have
> to postpone my migration.
>
Tomcat docs could definitely be better (no question) ... but the nature of
servlets have changed a ***lot*** in the four or five years since Apache
JServ was first designed. And all the Tomcat docs pretty much assume you
are current with all the new concepts like web applications.
The good news is that you only have to learn this stuff once, and it works
on all modern servlet containers.
If you're just starting out on this learning path, I'd suggest the
following:
* Get the Servlet 2.2 (or, better, 2.3 -- it's going final in a few days)
specification from <http://java.sun.com/products/servlet/download.html>
and read it -- this is the standard to which all servlet containers
must conform.
* Get one of the current-generation servlet (and JSP) books to learn
about all the recent features. Look for something that covers
Servlet 2.2 and JSP 1.1.
* For learning and app development, forget the whole idea of running
Tomcat behind Apache (which is quite complex to configure). Simply
run Tomcat by itself - it can serve static content quite nicely,
whereas Apache JServ required you to connect with Apache.
* If you've used things like getServlet() in your old servlets, plan
on a major redesign instead of just a port -- there's no easy way
to emulate that in a Servlet 2.2 environment.
> Just a constructive comment,
The only way the docs get improved is for people to submit specific
changes or enhancements ... :-)
> Thanks
> Abde
>
Craig
> At 09:56 AM 9/5/2001 -0700, you wrote:
>
>
> >On Wed, 5 Sep 2001, echaiguer abderrahim wrote:
> >
> > > Date: Wed, 05 Sep 2001 15:32:28 +0200
> > > From: echaiguer abderrahim <[EMAIL PROTECTED]>
> > > Reply-To: [EMAIL PROTECTED]
> > > To: [EMAIL PROTECTED]
> > > Subject: newbie question
> > >
> > >
> > >
> > > Hi ,
> > >
> > > I just decided to move to the J2EE architecture. I was previously working
> > > with Apache / Jserv . I was wondering if there is an easy
> > > to migrate all my servlets to Tomcat without a lot of code manipulation.
> > >
> >
> >The mechanics of setting up a web application as required by Tomcat (or
> >any other container based on servlet 2.2 or later) are important -- you
> >will need to organize your servlets in the directory structure of a "web
> >application" as described in the Servlet spec, available at:
> >
> > http://java.sun.com/products/servlet/download.html
> >
> >You should also take a look at the "Application Developer's Guide" shipped
> >with Tomcat for more information.
> >
> >However, this is not necessarily going to be your biggest problem. Apache
> >JServ was based on Servlet 2.0, and included several calls (such as
> >ServletContext.getServlet()) that have been deprecated in Servlet 2.2 and
> >later. If your application relied on this call to acquire a reference to
> >a different servlet, you're going to have some re-architecting to do for
> >it to run on any Servlet 2.2 or later container.
> >
> > > Thanks,
> > > Abde
> > >
> > >
> >
> >Craig McClanahan
>
>
>