Implementing FileExistSelector

2001-08-09 Thread Michael Homeijer
In a part of the sitemap I want to check if a requested file exists, if it doesn't i want to return the contents of a default file. Is this the way I should implement something like that or are the easier methods? : map:match pattern=annotation\* map:select type=fileexists map:parameter

HTTP request parameter

2001-08-09 Thread annemarie . hartvigsen
Hi, what is required to get the http request parameter to work? I have [...] xsp:page language=java xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2;

Re: SV: SV: Cocoon2 with OrionServer

2001-08-09 Thread java guru
HI Thanx for reply., The problem with removing crimson jar from orion is that orion is complaining at startup 'coz it need parser to do its specific xml stuffand it needs crimson.. anyone with success? --- Tomas Andersson [EMAIL PROTECTED] wrote: I still have crimson.jar in my orion

[C2] JVM memory usage is growing and growing util OutOfMemory-Exception

2001-08-09 Thread C. Gaffga
Hi! Im using Tomcat4.b5, JDK1.3.1 and Cocoon2.b2 The memory usage of the VM, cocoon is running on, is growing an growing with each request. Aprox. 200K more by each request. This is going on until a OutOfMemory-Eception occures and the VM is using about 500 to 600 MB of memory. During

Re: Implementing FileExistSelector

2001-08-09 Thread Giacomo Pati
Quoting Michael Homeijer [EMAIL PROTECTED]: In a part of the sitemap I want to check if a requested file exists, if it doesn't i want to return the contents of a default file. Is this the way I should implement something like that or are the easier methods? : map:match

Re: SV: SV: Cocoon2 with OrionServer

2001-08-09 Thread Marcelo F. Ochoa
java guru wrote: HI Thanx for reply., The problem with removing crimson jar from orion is that orion is complaining at startup 'coz it need parser to do its specific xml stuffand it needs crimson.. anyone with success? I don't know which version of Orion web server distributs

Re: SV: SV: Cocoon2 with OrionServer

2001-08-09 Thread java guru
Hi., I am not sure if you are outlining procedure to use c1 with orion..i am talking about using c2 with orion 1.5.2 Thanx anyway --- Marcelo F. Ochoa [EMAIL PROTECTED] wrote: java guru wrote: HI Thanx for reply., The problem with removing crimson jar from orion is that orion is

esql logicsheet, insert, update and delete, examples

2001-08-09 Thread annemarie . hartvigsen
Hi, does anybody have any examples where you insert, update and delete records in databases, using xsp and esql logicsheet? /AM - Please check that your question has not already been answered in the FAQ before posting.

Re: SV: SV: Cocoon2 with OrionServer

2001-08-09 Thread Marcelo F. Ochoa
java guru wrote: Hi., I am not sure if you are outlining procedure to use c1 with orion..i am talking about using c2 with orion 1.5.2 Thanx anyway Me too, I am using Cocoon 2b1 and Orion Oracle 9iAS 1.0.2.2 Container for J2EE. Best regards, Marcelo. -- Marcelo F. Ochoa - [EMAIL

Re: HTTP request parameter

2001-08-09 Thread Christian Haul
On 09.Aug.2001 -- 01:17 PM, [EMAIL PROTECTED] wrote: Hi, what is required to get the http request parameter to work? I have [...] xsp:page language=java xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2;

Re: How to access attribute in Java?

2001-08-09 Thread Christian Haul
On 09.Aug.2001 -- 02:57 PM, Martin Benda wrote: Is it possible to access the value of an attribute inside of xsp:logic to use it in the Java Code? For example xsl:template match=timer-util:verify-user xsp:logic String driver = xsp:contentxsl:value-of

RE: esql logicsheet, insert, update and delete, examples

2001-08-09 Thread JEULIN Olivier
I'll send you an example in a few minutes (I'm not sure the rest of the mailing list would be interested) does anybody have any examples where you insert, update and delete records in databases, using xsp and esql logicsheet?

Re: esql logicsheet, insert, update and delete, examples

2001-08-09 Thread Hubert NEOtyk Iwaniuk
- Original Message - From: JEULIN Olivier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 3:43 PM Subject: RE: esql logicsheet, insert, update and delete, examples I'll send you an example in a few minutes (I'm not sure the rest of the mailing list would be

RE: esql logicsheet, insert, update and delete, examples

2001-08-09 Thread JEULIN Olivier
I'll send you an example in a few minutes (I'm not sure the rest of the mailing list would be interested) I would OK, then: this an old file I made to test something in the xml fragment I read from the DB, and I've changed a few things between the working version and this one. It's a

Re: esql and UnsupportedEncodingException - patch proposal

2001-08-09 Thread Arnaud Bienvenu
I applied your patch instead of mine; it is smarter and does the job. Would some Cocoon Guru apply it to CVS ? What is the procedure to ask for it ? Don't you like it ? Here is Michael's patch again (using cocoon's coding style) : Index:

C2: Connection Pool

2001-08-09 Thread Martin Benda
How to access the connection pool out of java? When I try to access my connection pool with the help of esql it works fine, but when I try to access the pool out of java I always get an exception. xsp:logic private DataSourceComponent datasource; public void compose(ComponentManager

newbie question: (XML-XSLT) cached - session logic - browser??

2001-08-09 Thread Karl Oie
Hi, im pretty new to cocoon2 so i need some advice about the best aproach for my problem; I got a quite large XML file which i use a XSL stylesheet to extract only parts of, but the XML file might change so i set this up as the generator. map:match pattern=toc.html map:generate

Re: esql and UnsupportedEncodingException - patch proposal

2001-08-09 Thread Arnaud Bienvenu
Oops, I found Michael's patch has a drawback : if you apply it and then you do not use the encoding attribute (i.e. esql:get-columns/), then you have an error : Exception java.io.UnsupportedEncodingException is never thrown in the body of the corresponding try statement. So finally the solution

Re: HTTP request parameter

2001-08-09 Thread Christopher Painter-Wakefield
Anne Marie, try esql:query select name as reg_name, deviceID as reg_deviceID, description as reg_description, startTime as reg_startTime, endTime as reg_endTime from user, terminal, deviceType, registration where

Re: rutime illegal state exception with mysql

2001-08-09 Thread java guru
Nah... i am using tomcat 3.2..positive --- Berin Loritsch [EMAIL PROTECTED] wrote: java guru wrote: Hi., Following is the exception i have with c2+tomcat+mysql... The sql page runs ok in the beginning...but gave this one after being idle for a while... any ideas?

Re: newbie question: (XML-XSLT) cached - session logic - browser??

2001-08-09 Thread forge
Just create an XSP page, with a template matching the root element of your xml page. Then do some if-then-else based on your session. In each 'if' body you do something like this: if (some_session_based_expression) { xsl:call-template name=henk/ } else if () The

RE: newbie question: (XML-XSLT) cached - session logic - browser??

2001-08-09 Thread Karl Oie
i think i understand, but won't this put a lot of processing on the server? the toc.xsl takes about 3 minutes to generate. if i apply the logic in the XSP page the page will have to process the entire XML document each time? mvh karl -Original Message- From: [EMAIL PROTECTED]

[C2] JVM memory usage is growing and growing util OutOfMemory-Exception

2001-08-09 Thread C. Gaffga
I have still the same Problem, Cocoon consumes all my memory over a short period of time. I did a few checks, so I could see that all instances of my Java Classes (some need very much memory) a released correctly. I overwrote the finalize method for that, and printed something to stdout, to see

FW: newbie question: (XML-XSLT) cached - session logic - browser??

2001-08-09 Thread Karl Oie
Thank you very much, i will try this now (just have to read about XSP and sessions first :-)... Just a final question about C2 as it seems you know about it's inner working. The class that gets created as a cache for my largefile.xml document. does it contain my entire document? (since i could

Re: esql and UnsupportedEncodingException - patch proposal

2001-08-09 Thread Enke Michael
Arnaud Bienvenu wrote: Oops, I found Michael's patch has a drawback : if you apply it and then you do not use the encoding attribute (i.e. esql:get-columns/), then you have an error : Exception java.io.UnsupportedEncodingException is never thrown in the body of the corresponding try

Re: Replacing \n with BR - cocoon pb ?

2001-08-09 Thread Christopher Painter-Wakefield
What about doing the replacements in your SELECT statement to create well-formed XML, then using the esql:get-xml ... to retrieve it? In Oracle, it would look like: SELECT 'mytext' || REPLACE(mytextfield, CHR(10), 'BR/') || '/mytext FROM I would guess most RDBMS have a similar

Re: Can the sitemap pass parameters to XSP, like it passes them to XSL?

2001-08-09 Thread Arnaud Bienvenu
Tibi, You can get the parameter with this function : parameters.getParameter(lang, unknown); (unkown is the default value) If you want to insert it outside java code within your xsp, use xsp:expr : xsp:exprparameters.getParameter(lang, unknown)/xsp:expr If somebody knows a better way,