I'm not going to claim this is a good solution or that it would hold up
in a real app but it did work for the simple tests I did. One thing I
forgot to mention is to access the JSP page your URL needs to look
something like
http://host/servlet/Turbine/path/to/jsp/page.jsp?screen=JSPScreen. The
JSP engine picks up the path to the JSP page from the path info so you
can't have turbine parameters in the path info as well. I think to get a
good clean solution you need JSDK 2.1 or above, we also have an example
of how that is done if anyone is interested. 

John McNally wrote:
> 
> >
> > 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]

-- 
Kimbro Staken
Chief Technology Officer
Infostreet Inc.


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

Reply via email to