Bertrand Delacretaz wrote:
> Hi,
> 
> Having access to ServletContext in scripts would be useful to allow
> scripts to access java objects initialized by other servlets.
> 
> If we agree, I'll add a suitable constant to SlingScriptEngine, and
> change ScriptHelper and MicroslingScriptResolver accordingly.
> 
I don't see a problem in making the servlet context available. However I
don't think that its a good design if a script or a servlet relies on
something another servlet has created. Servlets are for generating
responses to requests but not for preparing the environment.

Carsten

-- 
Carsten Ziegeler
[EMAIL PROTECTED]

Reply via email to