On 20.07.2004 18:36, Steve Schwarz wrote:

I've written some flowscript to perform login validation using OJB and on success I end up with a populated bean. I then call sendPage() to a pipeline that uses JXPathGenerator along with the bean to create the XML that meets the needs of the authentication framework.

My problem is that while the auth-fw invokes my flow appropriately to validate the login, my calling sendPage() provides the output XML directly to the browser. The auth-fw needs be to return XML directly to it.

I looked in PipelineAuthenticator.java and it's authenticate() method is performing:
source = SourceUtil.getSource(authenticationResourceName, null,
parameters, this.resolver);
doc = SourceUtil.toDOM(source);
on my validation flow pipeline.


Can someone give me an idea how I can either:
- invoke a pipeline from within flow with my bean whose output is returned to the flow caller instead of sent to the browser.

PipelineUtil.processToDOM("pipeline");

- how to directly return XML from within flow (I can have Castor marshal my bean if I have to).

Hmm, yes, Castor is an option. We have used this already (for non-authentication fw stuff).


The auth-fw flow example just reads the login info from an XML file on disk with an appropriate stylesheet to retrieve only the desired login info (or none as appropriate); so it doesn't cover this scenario.

Joerg


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to