On 10/19/07, Felix Meschberger <[EMAIL PROTECTED]> wrote:
> So we would probably have:
>
> public class Sling {
...
> public void include(String path) throws ServletException, IOException
...
Yes, something like that.
I wouldn't call the class "Sling" though, as it's not sling, it's only
a poor lonesome helper class. But I'd call the variable that holds
this in scripts "sling".
> Would this be for scripting-only ?
It doesn't have to, but as you mentioned it makes less sense in java
code, where people are expected to know their J2EE stuff.
That's why I called the interface SlingScriptHelpers in my initial
suggestion: it's usually meant for scripting, but of course people can
use it in java code if they want.
-Bertrand