Re: Form data to XML

2004-08-16 Thread Paul Bowler
I am using Xindice as a simple content management system and wish to bind my forms to this database, which I have done successfully. However, using the binding framework this only works for UPDATEs (i.e. the form data already exists). I cannot get it to work for INSERT's (i.e. add a new entry b

Form data to XML

2004-08-16 Thread Paul Bowler
How can I generate an XML version of the bean data held in a form? Do I use the JX generator, and if so, is there a generic template to 'echo' the contents of a bean? Many thanks, Paul - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Create new form model for later binding

2004-08-13 Thread Paul Bowler
> Paul Bowler wrote: > > I've got form binding working nicely for existing form documents in my XML > > database (thanks for all your help). > > However, this only works with data that alrady exists within the database. If I > > try to use it for a new form ins

One-way binding using a new form

2004-08-13 Thread Paul Bowler
27;model' for a new form. Many thanks, Paul. -- Paul Bowler Aventix Associates Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Create new form model for later binding

2004-08-13 Thread Paul Bowler
form.createBinding(bindingURI); form.load(doc); form.showForm(formURI); form.save(doc); saveDocument(doc, dataURI); } I think I need to replace the loadDocument() call but don't know what with.

Re: Passing form-bound XML to pipeline

2004-08-12 Thread Paul Bowler
> Er. I don't quite understand your problem. The xmldb source is writable, > which means that you can bind to a source that is in your XMLDB. > > Then if you have your bound object as a DOM, you can say > cocoon.sendPage("your-url", {myDom: dom}); and then in JXT say #{myDom} > should show the

Passing form-bound XML to pipeline

2004-08-12 Thread Paul Bowler
found (the XML binding exmaple in the forms block) uses some convaluted java script to store the XML to the filesystem, bypassing any sitemap pipeline. Any ideas? Paul. -- Paul Bowler Aventix Associates Ltd - To unsubscribe

Caching remote URL's

2003-12-03 Thread Paul Bowler
rom a remote URL for a specified period of time. Has anyone any idea how I can do this? Paul. -- Paul Bowler Aventix Associates Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cocoon newsgroup module?

2003-11-12 Thread Paul Bowler
Does anyone have a newsgroup module written in cocoon that they are willing to share? I need this for an internal project where it doesn't have to be all-singing-all-dancing, but simply functional. Many thanks, Paul. -- Paul Bowler Aventix Associate

How to commit change for review

2003-11-11 Thread Paul Bowler
ere are no instructions (as far as I can see) on the process of getting changes approved and commited. Can anyone shed some light on this? Paul -- Paul Bowler Aventix Associates Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: servlet destroy() method in Cocoon

2003-11-06 Thread Paul Bowler
read up on the servlet specification to clarify the servlet lifecycle methods and think about the problem in a different way. Regards, Paul. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: Jorg Heymans <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Thu

Re: Connecting Cocoon 2.1 with eXist 0.9.2 ???

2003-10-30 Thread Paul Bowler
rry I can't help with the xmldb transformer, but I feel the xmldb protocol is much more powerful, and I hope this simple example helps you. Paul. -- Paul Bowler Aventix Associates Ltd - To unsubscribe, e-mail: [EMAIL PROTEC

Re: Connecting Cocoon 2.1 with eXist 0.9.2 ???

2003-10-30 Thread Paul Bowler
. Regards, Paull. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: "Katharina Weimer" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Thu, 30 Oct 2003 11:31:23 +0100 (MET) Subject: Re: Connecting Cocoon 2.1 with eXist 0.9.2 ??? > You&#

Re: Connecting Cocoon 2.1 with eXist 0.9.2 ???

2003-10-30 Thread Paul Bowler
. Regards, Paul. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: "Katharina Weimer" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Sent: Thu, 30 Oct 2003 10:19:46 +0100 (MET) Subject: Connecting Coco

Cocoon forum/discussion group module?

2003-10-28 Thread Paul Bowler
Has anyone written a newsgroup-type forum module for Cocoon that they are willing to share? I need something like this for a project I am working on and would not wish to waste time writing this from scratch if it is already out there. Many thanks, Paul. -- Paul Bowler Aventix Associates

Re: tomcat 3.3.1 ; cocoon 2.1.3 dev; deli, java.lang.VerifyError

2003-10-28 Thread Paul Bowler
Comment out (or delete) the deli component references in WEB-INF/cocoon.xconf (and possibly WEB-INF/web.xml). Regards, Paul. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: "iyy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tue

Re: Session.getAttribute problem: cocoon 2.1.3 dev

2003-10-22 Thread Paul Bowler
ll passes back another implementation of ContextManager? Your code will fall over. Mine won't. You are ignoring one of the fundamental rules of OO. Do so at your own peril. Paul. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: "iyy" <[E

Re: Session.getAttribute problem: cocoon 2.1.3 dev

2003-10-22 Thread Paul Bowler
return null; } DocumentFragment df = context.getXML("/authentication"); // User has logged on NodeList nl = df.getChildNodes(); ... You code goes here } } --

Re: Session.getAttribute problem: cocoon 2.1.3 dev

2003-10-22 Thread Paul Bowler
...forgot to mention... To get your NodeList object you can do: DocumentFragment frag = sc.getXML("/authentication"); NodeList nl = frag.getChildNodes(); I vaguely remember the getNodeList() method was removed from or deprecated in SessionContext. Paul. -- Paul Bowler Aventix Asso

Example for session output module anyone?

2003-10-22 Thread Paul Bowler
I'me trying to store a value from a url parameter in the users' session using the session output module but I cannot find an example of a sitemap that does this. Can anyone put me out of my misery? Paul. -- Paul Bowler Aventix Asso

Re: Session.getAttribute problem: cocoon 2.1.3 dev

2003-10-22 Thread Paul Bowler
I remember having problems with this. A snippet of how I now do this is here: ContextManager cm = (ContextManager) this.manager.lookup(ContextManager.ROLE); SessionContext sc = cm.getContext("authentication"); I hope this helps. Paul. -- Paul Bowler Aventix Associates Ltd -

Re: File uploads not working on Linux

2003-10-21 Thread Paul Bowler
rds, Paul. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: Geoff Howard <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Tue, 21 Oct 2003 10:40:51 -0400 Subject: Re: File uploads not working on Linux > Paul Bowler wrote: > > After a little mor

Re: File uploads not working on Linux

2003-10-21 Thread Paul Bowler
files I am trying to upload. Can anyone shed some light on why this is failing, and why the rather bazaar 'Cannot find server' error message is displayed. I am at my wits end! Thanks, Paul. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: Geoff How

Re: File uploads not working on Linux

2003-10-21 Thread Paul Bowler
Geoff, The sample file upload works fine. There is nothing different between the XP and Linux configurations and the enctype is correct. I'll up the debug level as you suggest. Thanks. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: Geoff Howard &l

Re: File uploads not working on Linux

2003-10-21 Thread Paul Bowler
Yep. The configurations are identical as they come from the same build process. Paul. P.S. I am using cocoon 2.1. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: Geoff Howard <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Tue, 21 Oct 2003 08:13:53

File uploads not working on Linux

2003-10-21 Thread Paul Bowler
= ObjectModelHelper.getRequest(objectModel); Part part = (Part) request.get("filename"); On XP the 'Part' object is gathered correctly. On Linux it is null. Any ideas? Thanks. -- Paul Bowler Aventix Associates Ltd - To

Re: Generator lookup failure in sitemap

2003-10-10 Thread Paul Bowler
Stephen, Thanks for this. There was indeed an exception in the constructor. Regards, Paul. -- Paul Bowler Aventix Associates Ltd -- Original Message --- From: Stephan Michels <[EMAIL PROTECTED]> To: cocoon-users <[EMAIL PROTECTED]> Sent: Fri, 10 Oct 2003 12:37:20

Generator lookup failure in sitemap

2003-10-10 Thread Paul Bowler
f generator for role 'eid' failed.: org.apache.avalon.framework.component.ComponentException: generators: ComponentSelector could not find the component for hint [eid] (key [eid]) All my other generators work fine and they are written no differently to this. I'm perplexed! Any i

RE: No "authentication" context?

2003-09-03 Thread Paul Bowler
I do now, and it's working fine. Many thanks for you kind help. Paul. On Wed, 3 Sep 2003 14:37:09 +0200, Carsten Ziegeler wrote > The name is correct. Do you have the auth-protect action in your pipeline? > > Carsten > > > -Original Message- > > Fro

RE: No "authentication" context?

2003-09-03 Thread Paul Bowler
OK, now I have: ContextManager cm = (ContextManager) this.manager.lookup(ContextManager.ROLE); SessionContext sc = cm.getContext("authentication"); My session context (after logging on) is always null. What should the context name be? I have tried many different things and they are all null. A

RE: No "authentication" context?

2003-09-03 Thread Paul Bowler
sc = cm.getContext(CONTEXT_NAME); > > // use the context here > > } finally { > manager.release((Component)cm); > } > > This is really all I can provide you, you have to figure out the rest. > > Carsten > > Paul Bowler wrote: > > > > I

RE: No "authentication" context?

2003-09-03 Thread Paul Bowler
changed version is in Cocoon, in the SessionPreTransformer.java. > > Carsten > > > -Original Message- > > From: Paul Bowler [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 03, 2003 11:03 AM > > To: [EMAIL PROTECTED] > > Subject: RE: No "

RE: No "authentication" context?

2003-09-03 Thread Paul Bowler
his component from the component manager, > get the context from the context manager and can then stream > the contents. > > Carsten > > > -Original Message- > > From: Paul Bowler [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 03, 2003 10:50 AM &

RE: No "authentication" context?

2003-09-03 Thread Paul Bowler
Without further information, I can only say that it should work that way. > > You can have a look at the sample of the authentication block, the protected > pipeline there uses the session transformer to display the whole > authentication > contex

Session data with SessionAttributeGenerator

2003-07-17 Thread Paul Bowler
I'm trying to get the xml block back from a successful user authenticated session object using the SessionAttributeGenerator. What is the name of the session attribute that this block is stoed under. There is nothing in the documentation and the obvious names of 'root', 'authentication' and '

NullPointer in RequestParameter generator

2003-07-08 Thread Paul Bowler
In my sitemap I have (for user authentication): The generator is the standard RequestParameter generator which is then transformed using my own component (to authenticate via our proprietary database). The generator works fine on its own, and the transformer works