Hi, the jsp-generator.xml is in the attachment, bye bernhard ----- Originalnachricht ----- Von: Davanum Srinivas <[EMAIL PROTECTED]> Datum: Donnerstag, Juli 19, 2001 8:09 pm Betreff: Re: Fwd: Re: [C2] Configurable JspEngineImpl > In, jsp-generator.xml under xdocs. You can do a "build docs" to > build the documentation. > > Thanks, > dims > > --- Bernhard Huber <[EMAIL PROTECTED]> wrote: > > Okay > > Where should I add some comments? > > > > ----- Originalnachricht ----- > > Von: Davanum Srinivas <[EMAIL PROTECTED]> > > Datum: Donnerstag, Juli 19, 2001 7:40 pm > > Betreff: Fwd: Re: [C2] Configurable JspEngineImpl > > > > > Thanks Bernhard. Checked in JSPEngineImplWLS and > > > JSPEngineImplNamedDispatcherInclude into C2.1 > > > ONLY. Could you help us (once again) by updating the > documentation > > > a bit? > > > > > > Thanks Again, > > > dims > > > > > > Note: forwarded message attached. > > > > > > > > > ===== > > > Davanum Srinivas, JNI-FAQ Manager > > > http://www.jGuru.com/faq/JNI > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Get personalized email addresses from Yahoo! Mail > > > http://personal.mail.yahoo.com/ > > > > > ATTACHMENT part 2 message/rfc822 > > From: "Bernhard Huber" <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Date: Thu, 19 Jul 2001 17:15:31 GMT > > Subject: Re: [C2] Configurable JspEngineImpl > > > > Hi, > > implemented org.apache.cocoon.components.jsp.JSPEngineImplWLS, > > New parameter servlet-name, for specifying jsp servlet-name, > > used in ServletContext.getNamedDispatcher(), > > > > Tested with test.jsp, and test1.jsp under WLS5.1 and xml- > cocoon2.1-dev. > > > > In cocoon.xconf you can specify your my.roles file as follows > > Added moreover servlet-name in order to specify the jsp-servlet > name. > > This setting > > is not neccessary, as '*.jsp' is the default value. > > > > ... > > <cocoon version="2.0" user-roles="WEB-INF/my.roles"> > > ... > > <jsp-engine> > > <parameter name="servlet-class" > > value="org.apache.jasper.servlet.JspServlet"/> > > <parameter name="servlet-name" value="*.jsp"/> > > </jsp-engine> > > > > And create a new file my.roles in WEB-INF directory with > > > > <?xml version="1.0"?> > > <role-list> > > <role name="org.apache.cocoon.components.jsp.JSPEngine" > > shorthand="jsp-engine" > > default- > > class="org.apache.cocoon.components.jsp.JSPEngineImplWLS"/> > > </role-list> > > > > Additionally I haved added untested more generic > > org.apache.cocoon.components.jsp.JSPEngineImplNamedDispatcherInclude > > > > > > ----- Originalnachricht ----- > > Von: Davanum Srinivas <[EMAIL PROTECTED]> > > Datum: Dienstag, Juli 17, 2001 11:49 pm > > Betreff: Re: [C2] Configurable JspEngineImpl > > > > > Bernhard, > > > > > > Looking forward to the updated JSPEngineImplWLS once you > finish > > > your testing :) > > > > > > Thanks, > > > dims > > > > > > --- Bernhard Huber <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > Specifying my.roles, that's cool! > > > > Is this feature about defining roles already in faq, or > documented?> > > Because that's really cool! > > > > > > > > .... > > > > thanks bernhard > > > > > > > > ----- Originalnachricht ----- > > > > Von: Davanum Srinivas <[EMAIL PROTECTED]> > > > > Datum: Dienstag, Juli 17, 2001 10:55 pm > > > > Betreff: Re: [C2] Configurable JspEngineImpl > > > > > > > > > Q: How do i setup your own .roles file? > > > > > A: In cocoon.xconf you can specify your my.roles file as > follows> > > > > > > > > ... > > > > > <cocoon version="2.0" user-roles="WEB-INF/my.roles"> > > > > > ... > > > > > > > > > > And create a new file my.roles in WEB-INF directory with > > > > > > > > > > <?xml version="1.0"?> > > > > > <role-list> > > > > > <role name="org.apache.cocoon.components.jsp.JSPEngine" > > > > > shorthand="jsp-engine" > > > > > default- > > > > > > class="org.apache.cocoon.components.jsp.JSPEngineImplWLS"/> > > > > > </role-list> > > > > > > > > > > Q: How do i update files in specific directories? > > > > > A: invoke "cvs update" from specific directory. (Am not a > CVS > > > guru > > > > > either) > > > > > Thanks, > > > > > dims > > > > > --- Bernhard Huber <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > Now I have adapted to your new JspEngine. > > > > > > I have created a JSPEngineImplWLS.java file. > > > > > > But.. now I don't understand how-to setup cocoon.roles > to > > > test it. > > > > > > Really I'm not joking. > > > > > > On way which I don't want to do is changing the > cocoon.roles in > > > > > > org.apache.cocoon. This gets compiled into cocoon.jar. > > > > > > Is there any other way to select the JSPEngineImplWLS > instead> > > > > of JSPEngineImpl? > > > > > > > > > > > > Next, I'm really not a cvs guru. Is there any easy way > just to > > > > > > get the latest sources regarding the JSPEngine stuff, > easily?> > > > > > > > > > > Well the stuff regarding relative filename I'll try to > check,> > > > > but it will take some time,... > > > > > > > > > > > > bernhard > > > > > > > > > > > > ----- Originalnachricht ----- > > > > > > Von: Davanum Srinivas <[EMAIL PROTECTED]> > > > > > > Datum: Montag, Juli 16, 2001 3:43 pm > > > > > > Betreff: [C2] Configurable JspEngineImpl > > > > > > > > > > > > > Bernhard, > > > > > > > > > > > > > > I have update both C2.0 and C2.1 with a new feature - > > > > > > > JSPEngine.java and JSPEngineImpl.java. > > > > > > > JSPGenerator has been modified to use these. > > > > > > > > > > > > > > Can you please do me a favor (as i don't have access > to > > > > > WebLogic). > > > > > > > Can you please port your code > > > > > > > to this latest structure and re-post it? This will > > > **really** > > > > > be > > > > > > > helpful. Also take a look at > > > > > > > cocoon.roles on how to pass parameters to JSPEngine. > > > > > > > > > > > > > > Thanks, > > > > > > > dims > > > > > > > > > > > > > > --- Bernhard Huber <[EMAIL PROTECTED]> wrote: > > > > > > > > dims, > > > > > > > > zip with code&samples, short read me > > > > > > > > > > > > > > > > ----- Originalnachricht ----- > > > > > > > > Von: Davanum Srinivas <[EMAIL PROTECTED]> > > > > > > > > Datum: Sonntag, Juli 15, 2001 3:11 pm > > > > > > > > Betreff: Re: [C2]: Planning beta 2 (Configurable > > > > > JspGenerator > > > > > > > which work > > > > > > > > > > > > > > > > > Bernhard, > > > > > > > > > > > > > > > > > > Can you please post your code? > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > dims > > > > > > > > > > > > > > > > > > --- Bernhard Huber <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Return-Path: <[EMAIL PROTECTED]> > > > > > > > > > > Received: (qmail 24814 invoked from network); 15 > Jul > > > > > 2001 > > > > > > > > > 07:22:12 -0000 > > > > > > > > > > Received: from ns1.i-one.at (HELO mail1.i- > one.at) > > > > > > > (194.24.128.100)> > > by h31.sny.collab.net with > SMTP; > > > 15 > > > > > Jul > > > > > > > 2001 07:22:12 -0000 > > > > > > > > > > Received: from webmail.i-one.at > ([194.24.128.241]) by > > > > > > > > > > mail1.i-one.at (Netscape Messaging > Server > > > > > 4.15) > > > > > > > with > > > > > > > > > ESMTP id > > > > > > > > > > GGI74E00.99P for <cocoon-dev- > > > > > [EMAIL PROTECTED]>; > > > > > > > > > Sun, 15 Jul > > > > > > > > > > 2001 09:21:50 +0200 > > > > > > > > > > Received: from i-one.at ([127.0.0.1]) by > webmail.i- > > > one.at> > > > > > > (Netscape Messaging Server 4.15) > > > with ESMTP id > > > > > > > > > GGI74D00.FBV > > > > > > > > > > for > > > > > > > > > > <[EMAIL PROTECTED]>; Sun, > 15 > > > Jul > > > > > 2001 > > > > > > > > > 09:21:49 > > > > > > > > > > +0200 > > > > > > > > > > From: "Bernhard Huber" <[EMAIL PROTECTED]> > > > > > > > > > > To: [EMAIL PROTECTED] > > > > > > > > > > Message-ID: <[EMAIL PROTECTED]> > > > > > > > > > > Date: Sun, 15 Jul 2001 07:21:49 GMT > > > > > > > > > > X-Mailer: Netscape Webmail > > > > > > > > > > MIME-Version: 1.0 > > > > > > > > > > Content-Language: de > > > > > > > > > > Subject: Re: [C2]: Planning beta 2 (Configurable > > > > > > > JspGenerator > > > > > > > > > which work > > > > > > > > > > X-Accept-Language: de > > > > > > > > > > Content-Type: multipart/mixed; boundary="-- > > > 74bc722f5405fb8"> > > > > > > X-Spam-Rating: > h31.sny.collab.net > > > 1.6.2 0/1000/N > > > > > > > > > > > > > > > > > > > > This is a multi-part message in MIME format. > > > > > > > > > > > > > > > > > > > > ----74bc722f5405fb8 > > > > > > > > > > Content-Type: text/plain; charset=us-ascii > > > > > > > > > > Content-Disposition: inline > > > > > > > > > > Content-Transfer-Encoding: 7bit > > > > > > > > > > > > > > > > > > > > Hi > > > > > > > > > > Your approach always trying to load the jsp- > servlet > > > class> > > > > > > does not work for WebLogic5.1, and I > suspect > > > for > > > === message truncated ===> ---------------------------------------- > ----------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED]> > begin:vcard> n:Huber;Bernhard > > fn:Bernhard Huber > > version:2.1 > > email;internet:[EMAIL PROTECTED] > > end:vcard > > > > > --------------------------------------------------------------- > ------ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > ===== > Davanum Srinivas, JNI-FAQ Manager > http://www.jGuru.com/faq/JNI > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ > > ------------------------------------------------------------------- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > >
<?xml version="1.0"?> <!DOCTYPE document SYSTEM "dtd/document-v10.dtd"> <document> <header> <title>JSP Generator</title> <subtitle>in Cocoon 2</subtitle> <version>0.9</version> <type>Technical document</type> <authors> <person name="Carsten Ziegeler" email="[EMAIL PROTECTED]"/> </authors> <abstract>This document describes the jsp generator of Cocoon 2.</abstract> </header> <body> <s1 title="JSP Generator"> <p>The JspGenerator selects a JSPEngine component. The JSPEngine component launches a JSP servlet engine of your servlet container, feeds the HttpRequest into the JSP servlet engine, and pipes the jsp response as SAX events into Cocoon2. The JSP page is specified by the HttpRequest. </p> <p> This way you can continue to use your JSP pages. Your migration from JSP to XSP may be done step by step. You may specify your JSP pages either as JSP scriptlets or as JSP-XML. But keep in mind that your JSP output should be valid XML. </p> <ul> <li>Name : jsp</li> <li>Class: org.apache.cocoon.generation.JspGenerator</li> <li>Cacheable: ?.</li> </ul> <source> <![CDATA[ <map:generate type="jsp"/> ]]> </source> </s1> <s1 title="JSPEngine"> <p>As JSP servlet engines are implemented differently, you may have to select the appropriate JSPEngine component. The default is a JSPEngine working with Tomcat's JSP servlet engine Jasper. You may override the cocoon.roles by your own my.roles, as described in the <link href="faqs.html">FAQs</link>. </p> <p>The JSPEngine component of Tomcat's JSPEngine is implemented in JSPEngineImpl. If you want to use another JSPEngine component, you may specify it in a my.roles file. The following sample specify in file WEB-INF/my.roles a JSPEngine workging with WebLogicServer: </p> <source> <![CDATA[ <?xml version="1.0"?> <role-list> <role name="org.apache.cocoon.components.jsp.JSPEngine" shorthand="jsp-engine" default-class="org.apache.cocoon.components.jsp.JSPEngineImplWLS"/> </role-list> ]]> </source> <p>Defining the file my.roles this way you must ensure that your cocoon.xconf refernces my.roles, like that: </p> <source> <![CDATA[ ... <cocoon version="2.0" user-roles="WEB-INF/my.roles"> ... ]]> </source> <p>Currently there are tree JSPEngine components available: </p> <table> <tr><th>JSPEngine</th><th>ServletEngine</th></tr> <tr><td>JSPEngineImpl</td><td>Tomcat, generic jsp servlet class</td></tr> <tr><td>JSPEngineImplWLS</td><td>WebLogic 5.1, 6.0(?)</td></tr> <tr><td>JSPEngineImplNamedDispactcherInclude</td><td>Generic JSP Servlet</td></tr> </table> <p>The next sections describe the settings of the JSPEngine components. </p> <s2 title="JSPEngineImpl"> <p>This JSPEngine is the default engine selected in cocoon.roles. By default it uses Tomcats' JASPER JSP servlet engine. </p> <p>Running under a different JSP servlet engine, you can try to change the settings in cocoon.xconf, by modifying parameter name servlet-class to your needs. </p> <source><![CDATA[ <jsp-engine> <parameter name="servlet-class" value="my.servlet.MyJspServletOfMyServletEngine"/> </jsp-engine> ]]> </source> <p>JSPEngineImpl instances directly the JSP servlet engine class, and services HttpRequest to this instance. </p> <p>JSPEngineImplNamedDispatcherInclude delegates the selection of a JSP servlet engine instance to the servlet engine. It selects by servlet-name, and not by servlet-class. This is the key differences of these two implementations. </p> </s2> <s2 title="JSPEngineImplWLS"> <p>This JSPEngine is implemented especially for WebLogic 5.1. WebLogic 6.0, and WebLogic 6.1 may work, too. JSPEngineImplWLS finds the named request dispatch for jsp, the jsp response is piped into Cocoon2. </p> <p>The name of the JSP servlet is by default set to '*.jsp'. This is the default servlet name of the JSP servlet engine under WLS. You may adopt the parameter servlet-name to your needs. </p> <p>If you want to specify a different JSP servlet name, you can change the settings in cocoon.xconf, by modifying the parameter servlet-name. </p> <source><![CDATA[ <jsp-engine> <parameter name="servlet-name" value="MyNameOfMyJspServletOfMyServletEngine"/> </jsp-engine> ]]> </source> </s2> <s2 title="JSPEngineImplNamedDispatcherInclude"> <p>This JSPEngine is implemented like JSPEnginImplWLS without using any WebLogic classes. You may try to use this JSPEngine if JSPEngineImpl does not meet your requirements. </p> <p>The name of the JSP servlet is by default set to '*.jsp'. This is the default servlet name of the jsp servlet engine under WLS. You may adopt the parameter servlet-name to your needs. </p> <p>If you want to specify a different JSP servlet name, you can change the settings in cocoon.xconf, by modifying the parameter servlet-name. </p> <source><![CDATA[ <jsp-engine> <parameter name="servlet-name" value="MyNameOfMyJspServletOfMyServletEngine"/> </jsp-engine> ]]> </source> </s2> </s1> </body> </document>
begin:vcard n:Huber;Bernhard fn:Bernhard Huber version:2.1 email;internet:[EMAIL PROTECTED] end:vcard
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]