"Pier P. Fumagalli" wrote:
>
> > Is there a tool that can convert my existing servlets into cgi-scripts?
> >
> I don't think so... CGI are stateless, meaning that they are processes
> created everytime by the web server and invoked, while servlets have a
> different life cycle (init, service *, destroy)...
>

 Technically, Servlets aren't guaranteed to have any more
state than CGI's[1] :-) I know Pier knows what I mean, but it
comes as a shock to many people that the spec doesn't really
guarantee very much at all along those lines. Always cleanest
to reduce servlet state as much as possible in any case.

--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com


[1] The spec says it's legal to init(), service(), destroy()
on every single request if you really want to. It would
normally be silly, but it means a cgi-servlet-engine-wrapper
is legal. Very, very non-optimal, but legal. The other
much more reasonable thing to do (as mentioned in the jGuru
FAQ) is to run a normal servlet engine standalone, then just
call it from the CGI script.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to