>
> How about the patches for the JSPScreen? I'm not actually using that
> screen but I know several people have asked about how to do it so having
> an example might be good. I imagine there is probably a way to do it
> without changing the core of Turbine but I'm not sure how. I'm far from
> an expert on servlets so if anyone has a better idea that will work with
> JSDK 2.0 please let me know, it is easy with JSDK 2.1 or above. I don't
> really care if this gets in or not just thought it might be useful as an
> example.
>
I have never used JSP, so I am having difficulty evaluating your example
screen.

    public ConcreteElement build( RunData data ) throws Exception


        String servlet =
            TurbineResources.getInstance().getString("jsp.servlet");
        Class jspClass = Class.forName(servlet);
        Servlet jsp = ( Servlet ) jspClass.newInstance();

        jsp.init(data.getServletConfig());

        jsp.service(data.req, data.res);

        return null;
    }

Is this a working example?  (I assume some more code is needed.)  I don't
think JSP is an option under JSDK2.0 (or at least chaining/nesting is not
supported).  I do not see a problem with your changes to Turbine/RunData,
but I would like to get clarification from you and others that this is a
working and good solution.

John McNally



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to