Re: how to use cocoon.session.getAttribute() in cform template

2004-11-04 Thread Leszek Gawron
Johnson wrote: I use the default sitemap map:match pattern=*-display-pipeline !-- pipeline to show the form -- map:generate src=forms/{1}_template.xml/ map:transform type=forms/ map:transform type=i18n map:parameter name=locale value={request:locale}/

Re: how to use cocoon.session.getAttribute() in cform template

2004-11-04 Thread Johnson
I use form.showForm(sa1-display-pipeline); can I use jx to do this johnson - Original Message - From: Leszek Gawron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 04, 2004 4:23 PM Subject: Re: how to use cocoon.session.getAttribute() in cform template Johnson wrote: I

Re: how to use cocoon.session.getAttribute() in cform template

2004-11-04 Thread Leszek Gawron
Johnson wrote: I use form.showForm(sa1-display-pipeline); can I use jx to do this nothing changes here -- Leszek Gawron [EMAIL PROTECTED] Project ManagerMobileBox sp. z o.o. +48 (61) 855 06 67

RE: Other URL encoding issue...

2004-11-04 Thread Philip.Fennell
Yeah I've set UTF-8 about every where I can. But here's the rub, I thought I'd turn everything back to Latin-1 just to double check and... It still doesn't work through Apache unless the fragment identifier is appended to a search request. Gaa!!! Thanks for the suggestions but I'm sure that

Re: how to use cocoon.session.getAttribute() in cform template

2004-11-04 Thread Johnson
If I use jx,how to send para or session to form, If I use showForm,I can't send any para If I use sendPage,continue will error. johnson - Original Message - From: Leszek Gawron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 04, 2004 5:04 PM Subject: Re: how to use

Re: Other URL encoding issue...

2004-11-04 Thread Leszek Gawron
[EMAIL PROTECTED] wrote: Yeah I've set UTF-8 about every where I can. But here's the rub, I thought I'd turn everything back to Latin-1 just to double check and... It still doesn't work through Apache unless the fragment identifier is appended to a search request. Gaa!!! Thanks for the

getComponent / Release Component

2004-11-04 Thread Jan Hoskens
Hi, When editing my flowscript, I notice that there are some components that are used a lot. Eg: var resolver = null; var filesource = null; try { resolver = cocoon.getComponent(Packages.org.apache.cocoon.environment.SourceResolver.ROLE); filesource = resolver.resolveURI(uri);

Re: getComponent / Release Component

2004-11-04 Thread Leszek Gawron
Jan Hoskens wrote: Hi, When editing my flowscript, I notice that there are some components that are used a lot. Eg: var resolver = null; var filesource = null; try { resolver = cocoon.getComponent(Packages.org.apache.cocoon.environment.SourceResolver.ROLE); filesource =

Continuations and cleaning up

2004-11-04 Thread Smith, Lee [OS-IE]
Hey All, New user to cocoon here, and I've got a question about the use of continuations in flow scripts. I'll explain my question with the following block of code: 1: function myFunc() 2: { 3:var myDB = Database.getConnection(myPool); 4:myDB.setAutoCommit(false); 5: 6:.. do

Re: Continuations and cleaning up

2004-11-04 Thread Leszek Gawron
Smith, Lee [OS-IE] wrote: Hey All, New user to cocoon here, and I've got a question about the use of continuations in flow scripts. I'll explain my question with the following block of code: 1: function myFunc() 2: { 3:var myDB = Database.getConnection(myPool); 4:

Re: Continuations and cleaning up

2004-11-04 Thread Derek Hohls
Lezek Do you know of any sample code that shows how the someService code could be implemented? [EMAIL PROTECTED] 2004/11/04 12:41:15 PM Smith, Lee [OS-IE] wrote: Hey All, New user to cocoon here, and I've got a question about the use of continuations in flow scripts. I'll explain my

Re: Continuations and cleaning up

2004-11-04 Thread Leszek Gawron
Derek Hohls wrote: Lezek Do you know of any sample code that shows how the someService code could be implemented? For my business logic I started to use Spring framework. It has very good hibernate support along with declarative transaction management. I will post a wiki tutorial on how to use

Re: Continuations and cleaning up

2004-11-04 Thread Derek Hohls
Lezek I did suspect there are vast gaps in my knowledge here... but if you do know of any books on writing services and DAOs, then I would be in a better position to help bridge them! Thanks. PS Is using J2EE *really* required for db transaction apps?? [EMAIL PROTECTED] 2004/11/04 01:17:42

Re: Continuations and cleaning up

2004-11-04 Thread Derek Hohls
A quick look at the book reviews for the Expert One-on-One J2EE Development without EJB shows that nearly *all* of them complain about lack of code samples!! [EMAIL PROTECTED] 2004/11/04 01:17:42 PM Derek Hohls wrote: Lezek Do you know of any sample code that shows how the someService

Webapp Location with cocoon?

2004-11-04 Thread Robert Simmons Jr.
Greetings, I had a question regarding the location of the cocoon webapp. I was wondering where the location of the webapp is stated in configuration files? The reason why is because I would like to use Eclipse for my cocoon development but I dont want to store the whole cocoon build in the

Re: Continuations and cleaning up

2004-11-04 Thread Leszek Gawron
Derek Hohls wrote: Lezek I did suspect there are vast gaps in my knowledge here... but if you do know of any books on writing services and DAOs, then I would be in a better position to help bridge them! I have just given you one book link. PS Is using J2EE *really* required for db transaction

Re: Extend Lucene sample to RDBMS?

2004-11-04 Thread Nicolas Maisonneuve
my version doesn't allow nested lucene field because lucene index is a flat structure of fields. The official versionof LuceneIndexTransformer is a fulltext indexation.. It indexes the content (and not the structure) in a general field named content, there are also link field and text-attr but

RE: Webapp Location with cocoon?

2004-11-04 Thread Bart Molenkamp
Just copy webapp ($COCOON_HOME/build/webapp) to your project. You don't need the rest of Cocoon if you're just building a web application with Cocoon. Then you point your application server to that directory, and start it. If you're using tomcat, there are good plugins that allow you to launch

Re: Continuations and cleaning up

2004-11-04 Thread Leszek Gawron
Derek Hohls wrote: A quick look at the book reviews for the Expert One-on-One J2EE Development without EJB shows that nearly *all* of them complain about lack of code samples!! The book might have more examples but if you really read it throughly you should not have any problem with implementing

Re: Continuations and cleaning up

2004-11-04 Thread Ugo Cei
Il giorno 04/nov/04, alle 12:29, Derek Hohls ha scritto: PS Is using J2EE *really* required for db transaction apps?? It depends on how you define J2EE. J2EE is a large bag of technologies and you're not forced to use them all at all times. In other words, you can do DB access and transaction

RE: Webapp Location with cocoon?

2004-11-04 Thread Bart Molenkamp
Hi Jonny, I'm using the one from Sysdeo: http://www.sysdeo.com/eclipse/tomcatPlugin.html And yes, I'm satisfied with it :) There is one thing that gave me some problems after installing it. In the preferences page for Tomcat, you must ensure that your project is listed under the Source path

FirstFriday

2004-11-04 Thread Ugo Cei
Tomorrow is FirstFiday ([1]), isn't it? Regardless of what you're doing tomorrow, I would like to invite all committers and interested users to hang around on the IRC channel irc://irc.freenode.net/#cocoon, which should be more popular, IMHO. One of the nice things about IRC is that you can

Set up webservice

2004-11-04 Thread Oleksandr Filatov
Hello! I have an small Cocoon-application that creates PDF documents. That all is handled by one pipeline: 1. Get xml from db map:generate / 2. Transform it into xsl:fo by xsl transformation map:transform / 3. Feed this xsl:fo to FOP by map:serialize type=fo2pdf/ How can I create from it all a

Cocoon and XEP memory problem?

2004-11-04 Thread Hiral P
Hi all, I am using Cocoon 2.1.5.1 and XEP 3.8.1 on a RedHat LinuxServer to build PDFs from XML books. The application runs fine in normal mode, but there is a problem when we do load/stress testing. Following is the memory configuration: 1. Total: 3.9 GB 2. Max allocated to Cocoon (JVM): 2

Problem using JXTemplate Generator to show a form(NOT_FOUND is not a function)

2004-11-04 Thread Steven Gong
Hi, I think it's not a new problem and I've found someone posted the same problem here long ago[1]. I want to move my code from xml+form transformer to jx and followed what the userdoc mentioned (just clear the form transformer in sitemap, add a import line in original template) and waited for the

Parse error in application web.xml

2004-11-04 Thread beyaNet
Hi, I am running cocoon 2.1.5.1 as cocoon.war inside jboss 4.0.0 ; /server/default/deploy/cocoon.war I have specified duplicate contexts in /cocoon.war/web-inf/web.xml: web-app !-- Context Configuration == -- !--+ | Set a context property useful

Re: Problem using JXTemplate Generator to show a form(NOT_FOUND is not a function)

2004-11-04 Thread Leszek Gawron
Steven Gong wrote: Hi, I think it's not a new problem and I've found someone posted the same problem here long ago[1]. I want to move my code from xml+form transformer to jx and followed what the userdoc mentioned (just clear the form transformer in sitemap, add a import line in original template)

Parse error in application web.xml

2004-11-04 Thread beyaRecords
Hi, I am running cocoon 2.1.5.1 as cocoon.war inside jboss 4.0.0 ; /server/default/deploy/cocoon.war I have specified duplicate contexts in /cocoon.war/web-inf/web.xml: web-app !-- Context Configuration == -- !--+ | Set a context property useful

Re: Parse error in application web.xml

2004-11-04 Thread beyaNet
Does anybody have any idea about this? Or could you direct me to a web.xml DTD? many thanks Andrew On 4 Nov 2004, at 15:25, beyaNet wrote: Hi, I am running cocoon 2.1.5.1 as cocoon.war inside jboss 4.0.0 ; /server/default/deploy/cocoon.war I have specified duplicate contexts in

Problem:The entity cent was referenced, but not declared.

2004-11-04 Thread Björn Voigt
Hello Cocooners, I am trying to load an external rss feed, but the file-generator throws the following exception. SAXParseException: The entity cent was referenced, but not declared. A look into the rss.xml shows a enty named cent; How can I configure the generator to parse this xml? Thank yuo

How to use context with XSP

2004-11-04 Thread Reuben Christie
I want to know if I can use cocoon context within xsp if so How ? can anyone show me a code snippet. I have never worked with session before so i m kinda new inthis area. please help me. I want to get the hold of context from xsp if exist, and if not create new and then just add attributes i pass

Re: Parse error in application web.xml

2004-11-04 Thread beyaNet
Problem resolved I stupidly never observed the para-name attributes of context-param. Chnging those resolved the problem! now where did i leave those vouchers for new spectacles!!!... Andrew On 4 Nov 2004, at 17:58, beyaNet wrote: Does anybody have any idea about this? Or could you

Re: JspGenerator doesn't work from flow but does otherwise...

2004-11-04 Thread Garrick Dasbach
After reviewing the Jasper and Cocoon sources, I believe the best fix is for the CompilingClassLoader to extend URLClassLoader. The problem is that the Jasper system expects a class loader that contains a list of class paths. This way the Jasper code can reconstitute a full class path from

RE: Extend Lucene sample to RDBMS?

2004-11-04 Thread Conal Tuohy
Nicolas Maisonneuve wrote: my version doesn't allow nested lucene field because lucene index is a flat structure of fields. The official versionof LuceneIndexTransformer is a fulltext indexation.. It indexes the content (and not the structure) in a general field named content, there are

RE: How to use context with XSP

2004-11-04 Thread Reuben Christie
I am making little progress here..But there is a problem. here is my code sample . I am trying to create an attribute called id for user element and set its value from request parameter but its not working. If instead of using request parameter i put hardcode value then it works but i want to put

CForms: JDOM error when authenticating

2004-11-04 Thread Scott Yeadon
Hi, I am getting the following error, I am using JDOM 1.0 - is there anything in Apache slide that requires an earlier version of JDOM (I used to run with b9)? It doesn't appear to be related to any of my classes. org.apache.slide.common.ServiceAccessException: Service TxFileStore at

Re: CForms: JDOM error when authenticating

2004-11-04 Thread Scott Yeadon
OK, I've found it...Yes - it needs b9 (in the cocoon 2.1.5 release anyway) Scott Yeadon wrote: Hi, I am getting the following error, I am using JDOM 1.0 - is there anything in Apache slide that requires an earlier version of JDOM (I used to run with b9)? It doesn't appear to be related to any of

Re: Problem using JXTemplate Generator to show a form(NOT_FOUND is not a function)

2004-11-04 Thread Steven Gong
On Thu, 04 Nov 2004 16:37:42 +0100, Leszek Gawron [EMAIL PROTECTED] wrote: Are you using latest svn version? Sylvain has commited some patches to template.jx lately Oh, I just updated the latest svn version on BRANCH_2_1_X and it seems the problem remains. :-( Regards, Steven Gong

jx syntax madness

2004-11-04 Thread Jorg Heymans
Hi, Can anyone explain me why ${mystring.substring(mystring.indexOf('abc'))} works, ${mystring.substring(mystring.indexOf('abc') - 3)} works but ${mystring.substring(mystring.indexOf('abc') + 3 )} *not* ? Thanks! Jorg - To