Re: authentication-fw and sql

2007-01-18 Thread J.D. Williams
Tomorrow? On Thu, 2007-01-18 at 11:00 -0600, J.D. Williams wrote: > I am having a problem using a MySQL database as an authentication > resource with the Authentication Framework. > > This authentication resource pipeline: > > > > > > > >

Observer-Pattern in the Portal-Engine

2007-01-18 Thread Jakob Günther
Hello cocooners, i try to realize an Observer-Pattern in the Portal-Engine. The idea is that the coplets register at a main-component. This component (i would prefer a javascript communicating with some pojo's) would fire event back to the registered coplets when their calculated data is ready

authentication-fw and sql

2007-01-18 Thread J.D. Williams
I am having a problem using a MySQL database as an authentication resource with the Authentication Framework. This authentication resource pipeline:

RE: Reading Cocoon component from Servlet Filter

2007-01-18 Thread Ard Schrijvers
> Hi, > > I am trying to develop a Servlet Filter, I need to get some > components I > have in cocoon.xconf > > I am trying this way but I receive 'cocoon' as null > > org.apache.cocoon.servlet.CocoonServlet cocoon = null; > cocoon = > (org.apache.cocoon.servlet.CocoonServlet)(this.servletCont

Reading Cocoon component from Servlet Filter

2007-01-18 Thread Leonardo Battagli
Hi, I am trying to develop a Servlet Filter, I need to get some components I have in cocoon.xconf I am trying this way but I receive 'cocoon' as null org.apache.cocoon.servlet.CocoonServlet cocoon = null; cocoon = (org.apache.cocoon.servlet.CocoonServlet)(this.servletContext.getAttribute(" Coco

Re: How to get authentication contex in auth-fw -- solve

2007-01-18 Thread 許議中
got it, lack of this line var contextMan = cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); var authContext = contextMan.getContext("authentication"); var userFrag = authContext.getXML("/authentication/ID"); var user = Packages.org.

Re: Aplly transformation to a xml post data

2007-01-18 Thread Jason Johnston
Sébastien Geindre wrote: hello all, I handle a upload request send by cocoon forms with flowscript : var uploadWidget = form.lookupWidget("upload"); var stream = uploadWidget.getValue().getInputStream(); I'd like to transform the upload stream (which is XML) via a pipeline : cocoon.pr

Re: Aplly transformation to a xml post data

2007-01-18 Thread Steven D. Majewski
On Jan 18, 2007, at 6:46 AM, Sébastien Geindre wrote: Steven D. Majewski wrote: On Jan 18, 2007, at 5:54 AM, Sébastien Geindre wrote: hello all, I handle a upload request send by cocoon forms with flowscript : var uploadWidget = form.lookupWidget("upload"); var stream = uploadWidget.

RE: getting original uri from a continuation

2007-01-18 Thread Joost Kuif
Toby, Thanks! It works. Somehow, I had the same idea, but onother one suggesting the same seems to help trying it :) Gracias, Joost -Oorspronkelijk bericht- Van: Toby [mailto:[EMAIL PROTECTED] Verzonden: Thursday, January 18, 2007 12:38 PM Aan: users@cocoon.apache.org Onderwerp: Re: get

How to get authentication contex in auth-fw

2007-01-18 Thread 許議中
Hi! How to get authentication contex in auth-fw(flow), in the samples.js login function, I want to get some info from it, I use this method if (auth_login(handler, null, cocoon.parameters)) { var contextMan = cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.

Re: Aplly transformation to a xml post data

2007-01-18 Thread Sébastien Geindre
Steven D. Majewski wrote: On Jan 18, 2007, at 5:54 AM, Sébastien Geindre wrote: hello all, I handle a upload request send by cocoon forms with flowscript : var uploadWidget = form.lookupWidget("upload"); var stream = uploadWidget.getValue().getInputStream(); I'd like to transform the u

Re: getting original uri from a continuation

2007-01-18 Thread Toby
Joost Kuif wrote: > I need to have the original uri where a browser started a > Cocoon-continuation when the browser is inside a continuation. > I need it inside a xsp(logic) part. Fetch the url from the request object at the beginning of your flowscript and save it into a local variable. When yo

Re: redir in auth-fw

2007-01-18 Thread Carsten Ziegeler
> tks > > got the resource, but the resource is like > > http://localhost:8080/...?p=1 > > how to get the parameter p in resource > You have to pass the url, the best way is propably writing an Action which you can place in your sitemap. HTH Carsten -- Carsten Ziegeler http://www.osoco.org/w

Re: Aplly transformation to a xml post data

2007-01-18 Thread Steven D. Majewski
On Jan 18, 2007, at 5:54 AM, Sébastien Geindre wrote: hello all, I handle a upload request send by cocoon forms with flowscript : var uploadWidget = form.lookupWidget("upload"); var stream = uploadWidget.getValue().getInputStream(); I'd like to transform the upload stream (which is XML)

Re: relative paths in flowscript [was: realpath: doesn't return realpath]

2007-01-18 Thread Steven D. Majewski
On Jan 18, 2007, at 3:44 AM, Nico Verwer wrote: Steven D. Majewski wrote: Looking for an alternative way of solving my problem: What is the working directory for a flowscript ? If it's based o

Aplly transformation to a xml post data

2007-01-18 Thread Sébastien Geindre
hello all, I handle a upload request send by cocoon forms with flowscript : var uploadWidget = form.lookupWidget("upload"); var stream = uploadWidget.getValue().getInputStream(); I'd like to transform the upload stream (which is XML) via a pipeline : cocoon.processPipelineTo( 'uri',

getting original uri from a continuation

2007-01-18 Thread Joost Kuif
Hello Cocooners, I need to have the original uri where a browser started a Cocoon-continuation when the browser is inside a continuation. I need it inside a xsp(logic) part. Does anyone have an idea if it's possible and how to do this? Joost

RE: relative paths in flowscript [was: realpath: doesn't return realpath]

2007-01-18 Thread Nico Verwer
Steven D. Majewski wrote: Looking for an alternative way of solving my problem: What is the working directory for a flowscript ? If it's based on the directory of the script or the sitemap,