RE: <!ENTITY foo SYSTEM "file.name"> (was: ESQLl where condition)

2001-08-09 Thread annemarie . hartvigsen
Thanx, now at least I understand what's going on :) /Anne Marie -Original Message- From: David Crossley [mailto:[EMAIL PROTECTED]] Sent: 10. august 2001 02:00 To: [EMAIL PROTECTED] Subject: (was: ESQLl where condition) Anne Marie, I know the reason for t

RE: HTTP request parameter

2001-08-09 Thread annemarie . hartvigsen
Thanks for the tip; unfortunately it didn't work. java.lang.RuntimeException: Error executed prepared statement:select name as reg_name, deviceID as reg_deviceID, description as reg_description, startTime as reg_startTime, endTime as reg_endTime from user,

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

2001-08-09 Thread Piroumian, Konstantin
> Hello. > > I'm trying to figure out an architecture for a multilingual site. One of the > ideas, that seem pretty nice, is described by the sitemap code: > > > > > > > > > > > That would create a "virtual" subdirectory "en", and all the page requests > in

<!ENTITY foo SYSTEM "file.name"> (was: ESQLl where condition)

2001-08-09 Thread David Crossley
Anne Marie, I know the reason for the issue that you describe below and one way around it. The external entity def.xml is automatically included by the parser when it processes the top-level welcome.xml document. So as far as Cocoon is concerned, it sees that there has been no change to welcome.x

XSL as a stream

2001-08-09 Thread LeVasseur, George
This question may be coming real early in my learning curve but here goes... Using the supplied "hello" sample as my example, is it possible and easy to replace the physical simple-page2html.xsl so that the xsl is supplied via a stream from a call to a bean? What I would like to do is create a

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 : parameters.getParameter("lang", "unknown") If somebody knows a better way, please tell us :-)

Re: Replacing \n with -> 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 to retrieve it? In Oracle, it would look like: SELECT '' || REPLACE(mytextfield, CHR(10), '') || ' FROM I would guess most RDBMS have a similar capability. -Christopher Please respon

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

2001-08-09 Thread Tiberiu DONDERA
Hello. I'm trying to figure out an architecture for a multilingual site. One of the ideas, that seem pretty nice, is described by the sitemap code: That would create a "virtual" subdirectory "en", and all the page requests in that dir will in fact execute

Cocoon usr guide

2001-08-09 Thread smcardle
Hi Has anybody produced a PDF or similar format user/programmer guide for Cocoon 1. Or maybe somebody has written a book that I could buy. I would realy like to get my hands on one as I travel a lot and don't want to have to carry around my laptop just to read the HTML pages. Regards

Is there a way to read xml-configurations from the sitemap?

2001-08-09 Thread Danijel Komljenovic
Hi! Usually, there are elements which can be accessed in the setup() method of a Transformer. But this kind of Parameter-providing allows only simple String values and no hierachy at all. What I need is to pass nested parameters into my Transformer. I've written a class for filtering XML docume

RE: Problems when installing Cocoon with Tomcat 3.1

2001-08-09 Thread Monika Kubosch Dahl
Hi. Tank's for responding. I have not installed JSWDK, but I am doing it now... The rest I have done already. I use Tomcat standalone for testing and Tomcat with Borland AppServer later on. Monika -Original Message- From: Hewko, Doug [mailto:[EMAIL PROTECTED]] Sent: 8. august 2001 20:1

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. ), then you have > an error : > Exception java.io.UnsupportedEncodingException is never thrown in the body > of the corresponding try statement. > > So

[C2] dynamic generation of an XSP

2001-08-09 Thread Eric Vernichon
I need to generate dynamically an xsp page. I get an xml fragment from a string (called results) with a first xsp page (the request is something like this : submitdata.xsp?data={results}). Secondly, I use an xslt to transform the string results into another xsp page with esql code into it. Now,

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 de

[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 if

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] [mailto:[

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) { } else if () The template 'henk' is inserted in the

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... > >

Re: HTTP request parameter

2001-08-09 Thread Christopher Painter-Wakefield
Anne Marie, try 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 terminal.userID =

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. ), then you have an error : Exception java.io.UnsupportedEncodingException is never thrown in the body of the corresponding try statement. So finally the solution I posted at the be

Replacing \n with -> cocoon pb ?

2001-08-09 Thread Sébastien Lefebvre
Hi folks ! I have text in a database with \n characters in it. I want to produce HTML and keep LF in my presentation. So I have to convert \n to I can't replace with < and > characters because they can be confusing for the parser , am I right ? In order to see if my template is ok, I tried it

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. ... perform logic on the resu

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. private DataSourceComponent datasource; public void compose(ComponentManager manager) {

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: ./src/org/apache/cocoon/components/language/markup/xsp/jav

rutime illegal state exception with mysql

2001-08-09 Thread java guru
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? Thanks for ur time * java.lang.RuntimeException: Could not get the datasource java.lang.IllegalStateE

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'

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 wou

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: 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 to > use > it in the Java Code? > > For example > > > > String driver = select="@driver"/> > ... > > > > When I look inside the code cocoon produces I find th

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 > [...] >xmlns:xsp="http://www.apache.org/1999/XSP/Core"; > xmlns:esql="http://apache.org/cocoon/SQL/v2"; > xmlns:request="http://www.a

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 - [E

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 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 > > th

How to access attribute in Java?

2001-08-09 Thread Martin Benda
Is it possible to access the value of an attribute inside of to use it in the Java Code? For example String driver = ... When I look inside the code cocoon produces I find the following... ... String driver = this.characters("oracle.jdbc.driver.OracleDriver"); ... ..

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 dis

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? : > > > > >

[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 generating

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 f

HTTP request parameter

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

diferent JDK distributions produce diferent compilation results

2001-08-09 Thread Luis Gois
Hello, I'm having this problem with my Cocoon application running with diferent JDK distributions. With Blackdown's JDK 1.3.0 all pages work as I wanted them to, however, if I use Sun's JDK (1.3.0) on of the pages seems to skip some lines of code. Both generated *.java files are identical, only a

Re: Problems when installing Cocoon with Tomcat 3.1

2001-08-09 Thread Pedro Pastor
But the point is that the install instructions are not enough. If using those instructions Cocoon2 b1 works fine, and using the same documentation and the same configuratión (platform+Apache+Tomcat+JDK) Cocoon2 b2 does not work: What is happening ?? >From the whole list of answers it seems to me

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? : --

Re: esql and UnsupportedEncodingException - patch proposal

2001-08-09 Thread Enke Michael
Hi, on tuesday I posted this patch to cocoon-dev, seems to be equivalent with yours: Hi, I'd like to use but for the encoding we have to catch java.io.UnsupportedEncodingException These exception is not catched yet.

Re: Web-inf/lib

2001-08-09 Thread Adrian Geissel
Hi, We have this working with Tomcat 3.2 and Cocoon 1.8.2. What we found was that when the WAR is first installed, it is expanded as expected. However, before the JARs can be loaded by the Cocoon app, Tomcat needs to be restarted (basically the restart needs to happen twice - once to expand the