Hi Espen,
The implementation differences you have noticed are because these two
containers implement different versions of the Servlet and JSP
specifications (2.1 + 1.0 and 2.2 + 1.1 respectively, from memory). A
number of method names changed in the latest revision of the spec for to
enhance naming consistency across the API's.
So, yes, if you go out and get a couple of web containers that all implement
the same version of the specs, they should be able to run you web app
unchanged. That's the vision anyway.
As for the ServletContext, that class is designed to correspond to the web
application scope, similar to the ASP Application object. The only thing
lacking at this stage is direct support application lifecycle events like
the Application_OnStart and Application_OnEnd events in the global.asa in
ASP. I believe direct support for these type of events is planned for the
next version of the Servlet spec (2.3 ?). In the meantime you can get by
with on-startup autoloaded servlets and some intelligent coding.
Having now had a reasonable amount of experience in both environments, I can
honestly say JSP/Servlets leave ASP for dead in terms of development
productivity, reliability and in some cases performance.
Regards
Drew Cox
> -----Original Message-----
> From: espen dall�kken [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, January 20, 2000 10:39 PM
> To: [EMAIL PROTECTED]
> Subject: Application management in JSP
>
> I read in an article that you can manage applications in a ASP like
> fashion
> in JSP using the ServletContext object.
> My question is if the ServletContext object is implemented in the same way
> in most servlet engines or if there are differences simular to the
> differences in using the HttpSession object. Using the HttpSession on the
> Tomcat engine I had to use get and setParameter, but in JSWDK 1.0.1 I have
> to use set and putValue, so is the ServletContext object handled
> differently
> also ?
>
> Jsp for the ASP programmer article:
> http://www.asptoday.com/articles/19991022.htm
>
> | || ||| || r a z o r f i s h
> espen dall�kken
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html