Re: Cocoon 2.1.5 - javaflow problem (3)

2004-05-27 Thread Enrico Migliore
Joerg Heinicke wrote: On 26.05.2004 19:00, Enrico Migliore wrote: Cocoon 2.1.5 -- I modified the CalculatorFlow example and noticed that: 1. if Cocoon is restarded, CalculatorFlow.class is loaded and the java code executed. 1. if Cocoon is NOT restarded, CalculatorFlow.class is

RE: Java code in xsp page

2004-05-27 Thread Oro smith
Thanks robby.This is working fine. What packages does it contain? Can all packages be used.If i include external packages where should they be in cocoon? Quoting [EMAIL PROTECTED]: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xsp:structure

Re: large xml's in cocoon

2004-05-27 Thread Bertrand Delacretaz
Le 26 mai 04, à 20:00, Anna Bikkina a écrit : I do not see any out of memory errors. It just results in a blank page. Not sure what it could be. I will change the java parameters and see how it works. Usually a blank page means some kind of Throwable is not caught, but it should be visible in

Re: Problem using processPipelineTo()

2004-05-27 Thread Suzan Foster
Joerg Heinicke wrote: On 26.05.2004 17:05, Suzan Foster wrote: The code executes properly, but results in the sendPage only returning a portion of the generated page from the pipeline: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html

Re: C2.1.5 - build.sh bug

2004-05-27 Thread Glen Ezkovich
On May 26, 2004, at 4:06 PM, Joerg Heinicke wrote: On 26.05.2004 00:32, Christopher Painter-Wakefield wrote: There is a bug in the build.sh build script. Sorry if this has been covered before; this is my first build of a 2.1.x system. The build.sh uses /bin/sh, which on Solaris and other

RE: Java code in xsp page

2004-05-27 Thread robby . pelssers
i suppose in the web-inf/lib directory... You might need to reload your webapp, check it out... -Original Message- From: Oro smith [mailto:[EMAIL PROTECTED] Sent: 27mm2004 7:27 To: [EMAIL PROTECTED] Subject: RE: Java code in xsp page Thanks robby.This is working fine. What packages does

Re: Re: Cocoon initialisation error

2004-05-27 Thread agustinus.tedja
Unfortunately the suggestion still makes my Cocoon produce the same error. Perhaps is it the classpath problem? Perhaps is it related to the endorsed class problem ? But I am using built-in Jetty that should refer to the correct endorsed classes from cocoon, isn't it ? Regards, Agustinus Tedja

AW: Retrieving session data from an action

2004-05-27 Thread Hildebrandt, Ole
Hi, Have you tried this within an acion? Request request = ObjectModelHelper.getRequest(map); Session sess = request.getSession() Regards Ole -Ursprüngliche Nachricht- Von: Bruce Perryman [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 27. Mai 2004 00:03 An: cocoon

Re: uploading file in cocoon2.1.4

2004-05-27 Thread Madhavi Thottempudi
Thank you Jeorg and Venkatesan for your suggestions. I will look into the documentation and hopefully I will find a solution. - M Now At 22:52 26/05/2004, you wrote: On 26.05.2004 16:47, Madhavi Thottempudi wrote: Hi there! I am trying to upload a zip file and save it somewhere on the hard-drive.

Re: Adding a global validation message to a form?

2004-05-27 Thread Upayavira
Mark H wrote: Are you looking for a feature you had in 2.1.4 and you don't find anymore? If so, what exactly? No, the reason I mentioned 2.1.5 is just to make clear what version of cocoon I'm using since cforms are still in development. Basically what I'm looking for is after some custom

Re: Problem using processPipelineTo()

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 10:00, Suzan Foster wrote: The code executes properly, but results in the sendPage only returning a portion of the generated page from the pipeline: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html

Re: Cocoon 2.1.5 JCS store

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 07:37, David Luk wrote: I have already played with default.ccf in cocoon 2.1.4 and I have left it unchanged, but it doesn't help, so I thought I might have missed something crucial in cocoon.xconf when upgrading to 2.1.5. The remote cache server is running and awaiting for

Re: Cocoon 2.1.5 - javaflow problem (3)

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 08:03, Enrico Migliore wrote: Cocoon 2.1.5 -- I modified the CalculatorFlow example and noticed that: 1. if Cocoon is restarded, CalculatorFlow.class is loaded and the java code executed. 1. if Cocoon is NOT restarded, CalculatorFlow.class is never reloaded and the

Re: Please give me a hand

2004-05-27 Thread s . q . huang
Is there any restriction on the total of cells in a styleregion? Joerg Heinicke [EMAIL PROTECTED] 2004-05-27 05:14 Please respond to users To:[EMAIL PROTECTED] cc: Subject:Re: Please give me a hand On 26.05.2004 12:12, [EMAIL PROTECTED] wrote: In my sample

Re: Please give me a hand

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 12:01, [EMAIL PROTECTED] wrote: Is there any restriction on the total of cells in a styleregion? Not that I'm aware of. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Do session aware redirects work?

2004-05-27 Thread Upayavira
This might sound crazy, but I've got some code that, within an action, does: redirector.globalRedirect(true, my-new-url); When I trace it through within Eclipse, I find that in HTTPEnvironment.doRedirect, it finds the correct session. However, when I receive another request, the one coming in

Authentication: access role info in sitemap

2004-05-27 Thread mirko
Hi, How can I access role information in the sitemap? I want to protect some pipelines to be only accessed by special users. I think I'll write an action that will put role to the parameters but maybe there is already written and better solution. (The best would be for me that the component

Re: Problem using processPipelineTo()

2004-05-27 Thread Suzan Foster
Joerg Heinicke wrote: When it is sendPage(): Is it correct that the pipeline 'content/' ... works on that file? Then it's maybe a sync problem, the write to disk might not have been finished. Another reason might be the chunking of output if the content-length header is set to a wrong size. Can

Re: Cocoon 2.1.5 - javaflow problem (4)

2004-05-27 Thread Enrico Migliore
On 27.05.2004 08:03, Enrico Migliore wrote: Cocoon 2.1.5 -- I modified the CalculatorFlow example and noticed that: 1. if Cocoon is restarded, CalculatorFlow.class is loaded and the java code executed. 1. if Cocoon is NOT restarded, CalculatorFlow.class is never reloaded and the

How can I get access to continuation-id (flowscript) in xsl template

2004-05-27 Thread Leonid Chumanov
Hi How can I get access to continuation-id (flowscript) from xsl template. Or how can I get access to continuation-id from sitemap (If I shall know it, I can pass parameter from sitemap to xsl)? Can anyone help please? Thanks Leonid

Has anyone used Cocoon for chinese language application ?

2004-05-27 Thread Vincent Mahe
Hello, I have to develop a chinese web application and I would like to use Cocoon for this. Has anyone already done that ? Are there any specific Cocoon blocks to include ? What should I put in my messages.xml i18n dictionnaries ? Is it UTF-16 ? Thanks

Confusion about Logging

2004-05-27 Thread Hildebrandt, Ole
Hi, I am starting to get a little confused about how to log in Cocoon. Exploring the WEB-INF/Lib directory I identified these libs having something to do with logging. - excalibur-logger-1.0.1.jar - logfactor5-1.2.8.jar - logkit-1.2.jar - commons-logging-1.0.3.jar - avalon-framework-4.1.4.jar

AW: Confusion about Logging

2004-05-27 Thread Marco Rolappe
hi ole, I'd suggest to use commmons-logging. it's a wrapper around the real logging implementations and if you use it you're not tied to a specific implementation. it will e.g. automatically use log4j if available and fallback to e.g. JDK loggin. cocoon, mainly because of historical reasons

Re: How can I get access to continuation-id (flowscript) in xsl template

2004-05-27 Thread Enrico Migliore
Leonid Chumanov wrote: Hi How can I get access to continuation-id (flowscript) from xsl template. Or how can I get access to continuation-id from sitemap (If I shall know it, I can pass parameter from sitemap to xsl)? Can anyone help please? Thanks Leonid Hi Leonid, I don't

RE: Confusion about Logging

2004-05-27 Thread Perez Carmona, David
I use for my business classes (those that don't have access to a logger provided by the sitemap) Commons Logging that I redirect to Logkit, the one used by Cocoon. HTH -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el: jueves, 27 de mayo de 2004 15:24

AW: Has anyone used Cocoon for chinese language application ?

2004-05-27 Thread Jasper Michalczik
Hello Vincent, I developed an application with Arabic contents using cocoon. I didnt have any trouble yet, my xml files are stored as utf8, but I dont have any experiences with utf16. You only need to make sure that the form encoding is set accordingly, if you plan to use formulars.

esql row count

2004-05-27 Thread Anna Bikkina
Hi, I am trying to get the count of number of rows returned in a query using esql. Is there something like esql:get-row-count. Any idea how I can get the number of rows using esql. Thanks, Anna. - To unsubscribe, e-mail:

Re: Do session aware redirects work?

2004-05-27 Thread Upayavira
Upayavira wrote: This might sound crazy, but I've got some code that, within an action, does: redirector.globalRedirect(true, my-new-url); When I trace it through within Eclipse, I find that in HTTPEnvironment.doRedirect, it finds the correct session. However, when I receive another request,

Re: esql row count

2004-05-27 Thread olivier demah
Anna Bikkina a écrit : Hi, I am trying to get the count of number of rows returned in a query using esql. Is there something like esql:get-row-count. Any idea how I can get the number of rows using esql. you might find something here http://cocoon.apache.org/2.1/userdocs/xsp/esql.html or may

RE: How can I get access to continuation-id (flowscript) in xsl template

2004-05-27 Thread Askild Aaberg Olsen
Leonid Chumanov wrote: How can I get access to continuation-id (flowscript) from xsl template. Or how can I get access to continuation-id from sitemap (If I shall know it, I can pass parameter from sitemap to xsl)? Can anyone help please? Thanks Leonid There is a FlowAttributeModule and a

RE: esql row count

2004-05-27 Thread robby . pelssers
You probably could use esql:row-results//esql:get-row-position But i think you can only show the count at the end this way if you declare a variable countrecords xsp:logicint countrecords = 0;/xsp:logic esql:results table esql:row-results xsp:logiccountrecords =

Re: Has anyone used Cocoon for chinese language application ?

2004-05-27 Thread Johnson
Hi! We use chinese,by UTF-8,including pdf,everything good. the messages dic must be UTF-8 Best regards Johnson - Original Message - From: Jasper Michalczik To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Thursday, May 27, 2004 10:26 PM Subject: AW: Has anyone

mime-type not set properly with JSP Source

2004-05-27 Thread Michael Glenn
Hello, Using Cocoon 2.1.5 I'm attempting to generate a PDF from a JSP generator. I'm using the Cocoon samples area to aid in this process by basing my sitemap off the FOP sitemap and adding a JSP generator in place of the XML generator sample. My XSL is the hello-world example as the

Re: Adding a global validation message to a form?

2004-05-27 Thread Bruno Dumon
On Thu, 2004-05-27 at 11:12, Upayavira wrote: Mark H wrote: Are you looking for a feature you had in 2.1.4 and you don't find anymore? If so, what exactly? No, the reason I mentioned 2.1.5 is just to make clear what version of cocoon I'm using since cforms are still in

Re: AW: Retrieving session data from an action

2004-05-27 Thread Bruce Perryman
Thanks for responding. getSession() returns a session whose getAttribute method returns an object of type SimpleSessionContext. How would I access this object? --- Hildebrandt, Ole [EMAIL PROTECTED] wrote: Hi, Have you tried this within an acion? Request request =

Re: mime-type not set properly with JSP Source

2004-05-27 Thread Garrick Dasbach
Yes, this bug is currently listed on bugzilla. You can see the report at: http://issues.apache.org/bugzilla/show_bug.cgi?id=27957 -- Garrick Dasbach Software Development Digonex Technologies, Inc. 317.638.4174 Fax CONFIDENTIALITY NOTICE: The information in this

Converting linebreak to br/?

2004-05-27 Thread Stephan Coboos
Hello, I'am using a flowscript to retrieve text from a form's textarea. This text may contain some linebreaks \n. Now I want display the content with line breaks in a html view. So I need to convert \n to br/. For displaying the content of the textarea I'am using a JXTemplate. How I can I

Re: Problem using processPipelineTo()

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 12:38, Suzan Foster wrote: When it is sendPage(): Is it correct that the pipeline 'content/' ... works on that file? Then it's maybe a sync problem, the write to disk might not have been finished. Another reason might be the chunking of output if the content-length header is set

Re: Converting linebreak to br/?

2004-05-27 Thread Tony Collen
Stephan Coboos wrote: Hello, I'am using a flowscript to retrieve text from a form's textarea. This text may contain some linebreaks \n. Now I want display the content with line breaks in a html view. So I need to convert \n to br/. For displaying the content of the textarea I'am using a

Howto setting response header from flow

2004-05-27 Thread Thorsten Mauch
Hi all I wonder if i can set response header from flow. Currently i set the header with the HttpHeaderAction, but to be more flexible i want it form flow. Is this possible ? Thanx Thorsten - To unsubscribe, e-mail: [EMAIL

Re: Converting linebreak to br/?

2004-05-27 Thread Ugo Cei
Il giorno 27/mag/04, alle 20:42, Stephan Coboos ha scritto: I'am using a flowscript to retrieve text from a form's textarea. This text may contain some linebreaks \n. Now I want display the content with line breaks in a html view. So I need to convert \n to br/. For displaying the content of

ServletContext.getRealPath()

2004-05-27 Thread Alan
I'm attempting to use cocoon.context.getRealPath() in my flowscript. Like so: cocoon.context.getRealPath(/WEB-INF) However, I'm getting this exception: org.apache.avalon.framework.CascadingRuntimeException: getRealPath is not a function. Does cocoon expose this method?

RE: Cocoon 2.1.5 JCS store

2004-05-27 Thread David Luk
I have already un-jar cocoon-2.1.5.jar and placed the content in the classes folder. Also I have removed cocoon-2.1.5.jar from WEB-INF/lib David. -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: Thursday, 27 May 2004 21:26 To: [EMAIL PROTECTED] Subject: Re: Cocoon

Re: No default type exists for 'pipeline' (2.1.5)

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 23:56, Jay Wright wrote: I am running into the following error using Cocoon 2.1.5: org.apache.avalon.framework.configuration.ConfigurationException: No default type exists for 'pipeline' at file:/C:/code/tech/web/sitemap.xmap Any suggestions? I've looked at the samples and their

Re: using ODMG in Form definition

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 03:08, Johnson wrote: Hi! I'm using ODMG to retrieve postgreSQL data, If I wrote the retrieve code in flow to retrieve data,it's ok. But I wrote the code into the widget on-value-changed,the system become unstable. it always show can't open the database com.. sometimes

Re: Cocoon 2.1.5 - javaflow problem (4)

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 12:45, Enrico Migliore wrote: the problem here is that I want Cocoon to reload a compiled class file. I don't want my application to load a source file in order for the JVM compiler to compile it. Ok. The Apples example works perfect: I deploy a compiled class file (i.e. foo.class),

Re: Howto setting response header from flow

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 22:44, Thorsten Mauch wrote: Hi all I wonder if i can set response header from flow. Currently i set the header with the HttpHeaderAction, but to be more flexible i want it form flow. Is this possible ? cocoon.response.setHeader(String name, String value) ??

Re: ServletContext.getRealPath()

2004-05-27 Thread Joerg Heinicke
On 27.05.2004 23:22, Alan wrote: I'm attempting to use cocoon.context.getRealPath() in my flowscript. Like so: cocoon.context.getRealPath(/WEB-INF) However, I'm getting this exception: org.apache.avalon.framework.CascadingRuntimeException: getRealPath is not a function.

Re: Order of processing in sitemap with call of flow

2004-05-27 Thread Joerg Heinicke
The most important disadvantages of such monolithic sitemaps are loosing the overview over the sitemap flow and the little reusability. The flowscript is for controlling page flow. So you should delegate the control immediately to it, not only after already having done some actions in the

Re: Adding a global validation message to a form?

2004-05-27 Thread Benoit Deshaies
re: adding form-level validation error messageS. This is a feature I would use as well. In our applications, we often display the list of errors at the top of the form and then each field in error is styled in red and the label gets an *. This is something Struts offers *wink* *wink*. See

Possible Live site??

2004-05-27 Thread Jason Lane
Hi there list[s], The other night I got a mail shot from formsPlayer, I must have handed over my details at some point ;) Anyway I went to their site: http://www.formsplayer.com/index.html It really looks like a Cocoon / Forrest site (actually I think it's Forrest, the html comments style and

Re: Possible Live site??

2004-05-27 Thread Joerg Heinicke
On 28.05.2004 01:22, Jason Lane wrote: Hi there list[s], The other night I got a mail shot from formsPlayer, I must have handed over my details at some point ;) Anyway I went to their site: http://www.formsplayer.com/index.html It really looks like a Cocoon / Forrest site (actually I think it's

Re: Adding a global validation message to a form?

2004-05-27 Thread Joerg Heinicke
On 28.05.2004 01:13, Benoit Deshaies wrote: re: adding form-level validation error messageS. This is a feature I would use as well. In our applications, we often display the list of errors at the top of the form and then each field in error is styled in red and the label gets an *. This is

Re: apply css?

2004-05-27 Thread Joerg Heinicke
Maybe you already solved it in the meantime ... On 18.05.2004 03:33, leon tian wrote: Hi, i tried to using xsl:choose to link the img but the first 'when' doesn't work. Could you spot the error for me? Thanks. No, it looks ok. What does doesn't work mean? It's never evaluated to true? Joerg

Re: using ODMG in Form definition

2004-05-27 Thread Johnson
tks I just find the miss,I use a load(bean) in widget but don't apply any binding because load(bean) is not necessary,so I remove it and ok. Best Regards Johnson - Original Message - From: Joerg Heinicke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 28, 2004 6:13 AM

RE: Cocoon 2.1.5 JCS store

2004-05-27 Thread Antonio Gallardo
David Luk dijo: I have already un-jar cocoon-2.1.5.jar and placed the content in the classes folder. Also I have removed cocoon-2.1.5.jar from WEB-INF/lib Please explain the situation. Is still there the problem? Best Regards, Antonio Gallardo

Re: imported stylesheets

2004-05-27 Thread Nanda
Thanks Joerg! I also encountered the same problem couple of times so i couldn't decide if auto reloading of imported stylesheets is really consistent or not. Maybe there is a bug in this feature. I will take a look at check-includes. On 26.05.2004 07:56, Nanda wrote: Does cocoon 2.1.x

cocoon email

2004-05-27 Thread Oro smith
Is there any good tutorial or code example for developing an email appln using cocoon? The samples dont give enough info. - Still single? Click here to find the perfect match.