I anticipated code like that, but my point is it does not honor the semantics of getServletConfig() which says it returns the same ServletConfig as is passed to init().

Sahoo

Sten Roger Sandvik wrote:
2010/4/22 Sahoo <[email protected]>

How does that work? The HTTP service implementation is supposed to call
Servlet.init(ServletConfig) and Servlet.getServletConfig() must return the
same ServletConfig back. User does not create ServletConfig object and pass
to HTTP service. The javadoc for getServletConfig says the following:

/Returns a servlet config object, which contains any initialization
parameters and startup configuration for this servlet. This is the
ServletConfig object passed to the init method; the init method should have
stored this object so that this method could return it.
/
Sahoo


What I did is something like this: http://pastebin.com/cPqE1Eec

BR,
Sten Roger Sandvik

Reply via email to