Re: Session Persistance, Tomcat Cocoon

2004-09-09 Thread Antonio Fiol BonnĂ­n
is there a way to prevent Tomcat (5.0.19) from storing all active sessions when shuting down. Search the tomcat-user mailing list archives. This is a frequently posted question. The answer is something related to changing some parameter of the Manager. But I do not recall the details right

Expression matching for form widgets

2004-09-09 Thread Derek Hohls
I am looking for some guidance for developing patterns to help validate some form fields; for example I need to check that an entry is in the form AA00 where AA are uppercase letters and 00 are two numbers. If someone can help with this and, more generally, point me to a good resource for

Re: Expression matching for form widgets

2004-09-09 Thread Scott Yeadon
From memory, Cocoon supports most regular expression syntax. There are heaps of reference sites, here's just one that's a reasonable introduction: http://www.regular-expressions.info/reference.html Your match could be done a number of ways, [A-Z]{2}[0-9]{2} or if Cocoon spits at this, try

Re: Exploring the Slide sample

2004-09-09 Thread Jean-Claude Moissinac
I use the slide reference sample; so, I assume it is well writed. And, it works on Windows. In the content.jx file, from the sample, there is the line form action=uploadsource.do method=post enctype=multipart/form-data with the suggested enctype. I suspect the problem comes from a configuration

Re: Session Persistance, Tomcat Cocoon

2004-09-09 Thread Ralph Goers
At 9/8/2004 11:16 PM, you wrote: As some of the Cocoon classes are not serializable this produces lots of exceptions each time. But it would be very interesting that everything stored in the session was Serializable, if that is at all possible. We see the same sort of messages with Weblogic.

Data access to/from JXTemplate

2004-09-09 Thread Derek Hohls
Hi There have been two recent posts on this topic, both unanswered and both, I think!, quite simple questions: http://archives.real-time.com/pipermail/cocoon-users/2004-September/055826.html http://archives.real-time.com/pipermail/cocoon-users/2004-September/055837.html If anyone has a few

RE: Exploring the Slide sample

2004-09-09 Thread Bart Molenkamp
In the forms block, look at samples/forms/upload*.xml -Original Message- From: Jean-Claude Moissinac [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 8:36 AM To: [EMAIL PROTECTED] Subject: Re: Exploring the Slide sample I use the slide reference sample; so, I assume it

Re: CForm bind JXPathContext

2004-09-09 Thread Marc Portier
oceatoon wrote: Hi Marc my Cform is binded to an XML document, This is the part we are concirned with : fb:repeater id=uploads parent-path=newuploads row-path=upload rooms room id=1 newuploads upload path=/ upload path=/..etc newuploads

RE: Data access to/from JXTemplate

2004-09-09 Thread Jeroen Reijn
Derek, regarding the second issue. I have tested the situation with the sitemap matcher: map:match pattern=view2/* map:generate src=view.jx type=jx map:parameter name=fileID value={1}/ /map:generate map:serialize type=xml/ /map:match Code in the jx template: test

Can you take the output of a transformation and use it as a param eter within the context of the matcher???

2004-09-09 Thread Philip . Fennell
Wasn't sure how to word the subject but what follows is what I'd like to know... I have a pipeline that contains a matcher the uses the parameter (relativePath) from the request as the url of a redirect: map:pipeline type=noncaching !-- Redirect request to url passed in 'relativePath'

Modifying documents via flowscript...

2004-09-09 Thread Derek Hohls
I am using flowscript to handle the process around modifying a form - so far so good! Now I would like to be able - from flowscript, I suppose - to modify the just-saved form in some way, probably by appending a comment line to the end (say with a time and date stamp, and an user id). Is there

Advantage using Hibernate with Cocoon

2004-09-09 Thread patrick
I'm wondering what might be the advantage of using Hibernate - or another O/R mapper - together with Cocoon. There some articles on the web, about using Hibernate with Cocoon. And anyone using it? Pat - To unsubscribe, e-mail:

RE: Advantage using Hibernate with Cocoon

2004-09-09 Thread Jeroen Reijn
Pat, I have not used hibernate with cocoon yet, but i have used Cocoon Forms with OJB/JDO. There are some wikipages about hibernate with Cocoon and OJB with Cocoon. Some samples about OJB and Forms can be found in the cocoon distribution. Looking at the wiki:

Host selector causing problem with PDF serialiser

2004-09-09 Thread David Merrilees
I have a transformation serialising an xml file as a PDF which works fine until I use a host selector within the pipeline and it fails to open. The host selector is working correctly except for this problem. See the problem for yourself here: http://www.neilrudd.co.uk/cocoon/abc/index.pdf Anyone

RE: Problem dealing with ampersand - HELP

2004-09-09 Thread Philip . Fennell
Hello, I cannot possibly put in some entity reference because the href is user input driven If the href is user input driven then you have two choices: 1) Upon submitting the form, that sends the user input, use the onSubmit event to trigger some client-side scripting that converts troublesome

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Ugo Cei
Il giorno 09/set/04, alle 10:38, [EMAIL PROTECTED] ha scritto: I'm wondering what might be the advantage of using Hibernate - or another O/R mapper - together with Cocoon. I think there are advantages in using Hibernate to implement data persistence over a relational database whether you are

Re: Host selector causing problem with PDF serialiser

2004-09-09 Thread [EMAIL PROTECTED]
David Merrilees wrote: I have a transformation serialising an xml file as a PDF which works fine until I use a host selector within the pipeline and it fails to open. The host selector is working correctly except for this problem. See the problem for yourself here:

Re: Host selector causing problem with PDF serialiser

2004-09-09 Thread Jean-Claude Moissinac
David Merrilees wrote: I have a transformation serialising an xml file as a PDF which works fine until I use a host selector within the pipeline and it fails to open. The host selector is working correctly except for this problem. See the problem for yourself here:

Re: Host selector causing problem with PDF serialiser

2004-09-09 Thread Upayavira
David Merrilees wrote: I have a transformation serialising an xml file as a PDF which works fine until I use a host selector within the pipeline and it fails to open. The host selector is working correctly except for this problem. See the problem for yourself here:

RE: Data access to/from JXTemplate

2004-09-09 Thread Derek Hohls
Jeroen Yes, I also thought it *should* work - I am using Cocoon 2.1.5. I will use your sample and see if I can figure it. Thanks for trying! Derek [EMAIL PROTECTED] 2004/09/09 10:23:02 AM Derek, regarding the second issue. I have tested the situation with the sitemap matcher: map:match

handle errors - send exception to action

2004-09-09 Thread Gunter D'Hondt
Hello, I want to send an email when an exception occurs and inside the mailbody the exception stacktrace must be written. So I thought to make an action action-sendmail and call it from the map:handle-errors part. That definitely triggers the action but how can I send the Exception object (or

Re: cocoon 2.1.5.1 and tomcat 5.5, library conflict

2004-09-09 Thread Niko Popitsch
Hi, I still could not solve this problem, but I found out that it _is_ a conflict between the commons-logging-api.jar in the tomcat/bin directory and the commons-logging-1.0.3.jar of my application. But how to get around this conflict? the libraries in tomcat/bin are loaded by the tomcat system

Cocoon Error

2004-09-09 Thread Jyothi Giridhar
Hi , I installed Apache TOmcat 4.1.18 I copied the cocoon.war file from cocoon2.0.4 . When i try http://localhost:8080 - Th tomcat page comes up bug when i try http://localhost:8080/cocoon - I get this error Failed to generate program code (this may happen if you use Xalan in incremental

Re: Cocoon Error

2004-09-09 Thread Norman Barker
Jyothi Giridhar wrote: Hi , I installed Apache TOmcat 4.1.18 I copied the cocoon.war file from cocoon2.0.4 . When i try http://localhost:8080 - Th tomcat page comes up bug when i try http://localhost:8080/cocoon - I get this error Failed to generate program code (this may happen if you use

Should static files be cached serverside?

2004-09-09 Thread Kees van Dieren
Hello, I'm researching caching and performance in Cocoon. Should static files (html, css, js, gif/jpeg/png) be excluded from a pipeline with the type set to 'caching'? I think that they should not be cached serverside, because the filename is used to generate they key; the caching-key is

Cocoon Proxy Redirects

2004-09-09 Thread Thierry BARUSTA
Hi! I'm curently using the WebServiceProxyGenerator provided with Cocoon 2.1.5. I have an issue when receiving a 3xx response code. The redirect is processed by Jakarta Commons - HttpClient and it works fine. The problem is that the url in the client's browser doesn't change (which is normal

Re: Should static files be cached serverside?

2004-09-09 Thread Jorg Heymans
or you could just let apache serve your static html. Kees van Dieren wrote: Hello, I'm researching caching and performance in Cocoon. Should static files (html, css, js, gif/jpeg/png) be excluded from a pipeline with the type set to 'caching'? I think that they should not be cached serverside,

Re: Creating and halting flow continuations

2004-09-09 Thread Ulf Sahlin
Hello Emond! Thank your for your swift reply. I need to: 1. create a continuation 2. put the id of the continuation in a deliveryUrl 3. redirect to a redirectUrl 4. suspend flowscript execution, until the remote system hosting redirectUrl redirects the user to my deliveryUrl 5.

Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
My newly-installed http://localhost/cocoon (Tomcat 4.1.30 and Cocoon 2.0.4 under Java 1.4.2_05 on FC2) still fails with Cocoon 2 - Internal server error type fatal message Failed to generate program code (this may happen if you use Xalan in incremental processing mode).

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Jorg Heymans
did you check the endorsed lib problem? Search the wiki for a howto. Any particular reason why you decided on an old cocoon version? Peter Flynn wrote: My newly-installed http://localhost/cocoon (Tomcat 4.1.30 and Cocoon 2.0.4 under Java 1.4.2_05 on FC2) still fails with Cocoon 2 - Internal

Re: Orbeon Presentation Server - OXF Rebuttal needed again?

2004-09-09 Thread Damon Rand
Why the bitterness? Competition is a good thing. Personally I am happy that OXF has been opensourced. It is a good solid product and its main weakness was not being opensource. Having used both OXF and Cocoon on several projects they are both good and both different. I believe OXF started out

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
On Thu, 2004-09-09 at 11:48, Jorg Heymans wrote: did you check the endorsed lib problem? Search the wiki for a howto. Hah! That definitely looks like it. Unfortunately, the Wiki page doesn't say *what* files need to be copied to the endorsed directory: it just says the libraries; and it refers

RE: Host selector causing problem with PDF serialiser - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-09-09 Thread Neil Rudd
The host selector mounts a folder located on a different logical disk, as shown in the code snippet below. !-- MOUNT IIS CUSTOMER COCOON FOLDERS -- map:match pattern=*/** map:select type=Host map:when test=neilrudd-co-uk map:mount check-reload=yes

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
On Thu, 2004-09-09 at 11:48, Jorg Heymans wrote: did you check the endorsed lib problem? Search the wiki for a howto. That seems to work, after a bit of experimenting. Thanks very much. For the record, with Tomcat 4.1.30 and Cocoon 2.0.4 with Java 1.4.2_05 under FC2 you need to copy

RE: Advantage using Hibernate with Cocoon

2004-09-09 Thread Paul Joseph
Also, try out Devaki NextOjbects an opensource tool that has Torque built it. http://www.devaki.org/nextobjects/ It automagically generates all the supporting OJB related files needed including the SQL calls to create the database. thx Paul --- Jeroen Reijn [EMAIL PROTECTED] wrote: Pat, I

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Jorg Heymans
Any particular reason why you decided on an old cocoon version? Yes, Cocoon 2.1.5.1 won't compile because ant is apparently being picked up wrongly from FC2, despite what the docs say; and Tomcat 5.5 has issues running under Java 1.5.0 unless you start adding patches. If you're looking to use

loading user profiles from mysql

2004-09-09 Thread Anton Andreev
Hello, I am running Cocoon 2.1.5 with Tomcat 5.0.19. I'm trying to load profiles for users from mysql (ver: 4.1.4-gamma-Max) rather then from filesystem (original setup on cocoon). So i've changed load-user-profile pipeline in portal/. to: map:match pattern=load-user-profile !--

Custom transformer - ho to get in / out Document from previous ransfromations

2004-09-09 Thread Javier Ramos
Hi all, I am writing acustom transformer that needs to extract some fragments from previous transformation steps in the running pipeline. Does anyone know how to access, from a sitemap component, the input / output to the transform method of the transformers that were applied before?

Re: Should static files be cached serverside?

2004-09-09 Thread Gerald Aichholzer
On Thu, 09 Sep 2004 12:26:32 +0200, Jorg Heymans [EMAIL PROTECTED] wrote: or you could just let apache serve your static html. are there any samples doing this? the wiki docs still say todo. I'm using cocoon under windows (it's for a prototype only) and have tried to serve static files (mostly

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
On Thu, 2004-09-09 at 13:25, Jorg Heymans wrote: Any particular reason why you decided on an old cocoon version? Yes, Cocoon 2.1.5.1 won't compile because ant is apparently being picked up wrongly from FC2, despite what the docs say; and Tomcat 5.5 has issues running under Java

RE: Custom transformer - ho to get in / out Document from previous ransfromations

2004-09-09 Thread Huber, Daniel
I am writing a custom transformer that needs to extract some fragments from previous transformation steps in the running pipeline. Does anyone know how to access, from a sitemap component, the input / output to the transform method of the transformers that were applied before? Hi Javier,

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Johannes Textor
Hi Pat, I have am now finishing my first project I used Hibernate and Cocoon together in, so maybe you are interested in some thoughts from a beginner's point of view. The issue Hibernate addresses is how to get objects to and from the database. When I started to use cocoon, I was impressed by

Re: Should static files be cached serverside?

2004-09-09 Thread Ralph Goers
Gerald Aichholzer said: On Thu, 09 Sep 2004 12:26:32 +0200, Jorg Heymans [EMAIL PROTECTED] wrote: or you could just let apache serve your static html. are there any samples doing this? the wiki docs still say todo. I'm using cocoon under windows (it's for a prototype only) and have

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Derek Hohls
Johannes I think you hit the nail on the head when you raised the whole elephant thing. I used the same terminology in a previous thread. ;-) http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=108799013931354w=2 A number of folks are pushing OJB... obviously each person has there own choices,

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Derek Hohls
Ugo I hope your talk will be online, for those of us not lucky enough to make the events? Thanks Derek [EMAIL PROTECTED] 2004/09/09 10:54:49 AM Il giorno 09/set/04, alle 10:38, [EMAIL PROTECTED] ha scritto: I'm wondering what might be the advantage of using Hibernate - or another O/R

Re: Should static files be cached serverside?

2004-09-09 Thread Gerald Aichholzer
On Thu, 9 Sep 2004 07:34:10 -0700 (PDT), Ralph Goers [EMAIL PROTECTED] wrote: Gerald Aichholzer said: On Thu, 09 Sep 2004 12:26:32 +0200, Jorg Heymans [EMAIL PROTECTED] wrote: or you could just let apache serve your static html. are there any samples doing this? the wiki docs still say todo.

Re: handle errors - send exception to action

2004-09-09 Thread Ralph Goers
Your action will have access to the Throwable. It is in the object model. Take a look at ObjectModelHelper. Gunter D'Hondt said: Hello, I want to send an email when an exception occurs and inside the mailbody the exception stacktrace must be written. So I thought to make an action

Re: Cocoon 2.0.4 still failing

2004-09-09 Thread Peter Flynn
On Thu, 2004-09-09 at 15:43, Jorg Heymans wrote: try build webapp as target. Same result. But how on earth you're getting the instantiationexception i don't know... Now you know why I'm using 2.0.4 :-) ///Peter - To

Re: Should static files be cached serverside?

2004-09-09 Thread Ralph Goers
Gerald Aichholzer said: On Thu, 9 Sep 2004 07:34:10 -0700 (PDT), Ralph Goers Well, by clicking on a href=/miracle/app/cook/info.gif in my xhtml-source-code my browser connects to the following address: http://server:/miracle/app/cook/info.gif But if I want to serve static content

Re: Treating strings passed to templates as markup?

2004-09-09 Thread Emmanuel Charpentier
xsl:text disable-output-escaping=yes.../xsl:text may disable that kind of transformation. On Wed, Sep 08, 2004 at 03:52:05PM +0200, Thomas Kjeldahl Nilsson wrote: Hello! Problem: I'm trying to pass a string to a jx template. The passed string contains html markup which I want the

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Ugo Cei
Il giorno 09/set/04, alle 16:47, Derek Hohls ha scritto: I hope your talk will be online, for those of us not lucky enough to make the events? Last year's GT talks were recorded and made available online as video files. I hope someone will do the same with this year's talks. Ugo -- Ugo

Re: Should static files be cached serverside?

2004-09-09 Thread Gerald Aichholzer
On Thu, 9 Sep 2004 08:11:56 -0700 (PDT), Ralph Goers [EMAIL PROTECTED] wrote: Gerald Aichholzer said: On Thu, 9 Sep 2004 07:34:10 -0700 (PDT), Ralph Goers Well, by clicking on a href=/miracle/app/cook/info.gif in my xhtml-source-code my browser connects to the following address:

Re: Should static files be cached serverside?

2004-09-09 Thread Robin Wyles
Hi... You can find some useful information on Apache/Cocoon and serving static content here: http://wiki.apache.org/cocoon/ApacheModProxy Robin. On 9 Sep 2004, at 17:37, Gerald Aichholzer wrote: On Thu, 9 Sep 2004 08:11:56 -0700 (PDT), Ralph Goers [EMAIL PROTECTED] wrote: Gerald Aichholzer

[Repost] no control flows defined, but there are!?

2004-09-09 Thread Lars Huttar
Dear Cocoon list, Please excuse this repost, but I'm fairly stuck on this problem, and can't make progress on starting to use CForms until I solve it. I'm running Cocoon 2.1.5.1 under Jetty (even though it says Tomcat below... it says that because my application folder, gem, is shared between two

Re: Should static files be cached serverside?

2004-09-09 Thread Ralph Goers
Gerald Aichholzer said: Hi Ralph, thanx for your answer - in my test some days ago using TinyWeb I was explicitly putting http://server:80/; as prefix to the href- resp. src-attribute values. Anyway - I'm not quite sure if serving static content using Apache would be an advantage in my

encodeUrl Transformer and unicode

2004-09-09 Thread Doug Chestnut
Hi All, I am working on a project in cocoon where I need to encode url strings (that contain diacritics) in an xml document like described on this page: http://www.w3.org/International/O-URL-code.html Is there any reason why the encodeURL Transformer doesn't do this? (

Re: Should static files be cached serverside?

2004-09-09 Thread Kees van Dieren
Thank you for that link! it will be of much use for me in future. Kees Robin Wyles wrote: Hi... You can find some useful information on Apache/Cocoon and serving static content here: http://wiki.apache.org/cocoon/ApacheModProxy Robin. On 9 Sep 2004, at 17:37, Gerald Aichholzer wrote: On Thu, 9