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/
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
> > > WebLogic6.0
> > > > > too.> > >
> > > > > > > > I was trying to adapt WebLogic5.1 Server JSP into
> cocoon2.> > > > > > > I now have implemented that using
> > > RequestDispatcher.include().> > > > >
> > > > > > > > This is due to WLS specific problems trying to load the
> > > > > > > > weblogic.servlet.JSPServlet directly!
> > > > > > > > Sadly I haven't found a ways to implement this WLS
> neutral.> > > >
> > > > >
> > > > > =====
> > > > > 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]
> > > > >
> > > > >
> > > > > 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]
> > >
> > >
> > > 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/
>
jsp-impl-wls.zip
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]