Re: C2 and Postgres

2001-07-11 Thread Colin Paul Adams
I find all I have to do is edit database.properties (and avoid spelling mistakes). The jdbc driver needs to be in the classpath, of course. -- Colin Paul Adams Preston Lancashire - Please check that your question has not already

Re: You cannot get a Poolable before the pool is initialized

2001-07-11 Thread 張文欽
Try to start Database first then start the cocoon - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 10:22 PM Subject: You cannot get a Poolable before the pool is initialized > I am trying run an sql statement in an XML. I have added m

velocity and cocoon

2001-07-11 Thread Rick Anderson
Hi All, I've been using cocoon for a while, but it seems that Velocity is getting a big push. Velocity uses VTL instead of XSL. I'd rather use xsl. Has anyone used Cocoon and velocity together? Are these products incompatible? Would it be easier to work with XSP instead of velocity? --Rick Ande

RE: C1 to C2

2001-07-11 Thread Luca Morandini
Andre, have you modifed the general sitemap to tell Cocoon you're not under the cocoon context ? For instance, when I wanted a sub-sitemap of mine to be relocated to the c:\cru directory, I modified the general sitemap as follows:

Re: AW: [C2] Redirects

2001-07-11 Thread Uli Mayring
On Wed, 11 Jul 2001, Berin Loritsch wrote: > > If I understand this correctly, the Avalon Configuration object is kind > > of a simplified XML structure without deeper nesting, right? > > It can fully represent an XML structure, but it ignores namespaces and you > cannot traverse UP the hierarch

Re: AW: [C2] Redirects

2001-07-11 Thread Uli Mayring
On Wed, 11 Jul 2001, Berin Loritsch wrote: > I think you may already be used to not > getting the output stream in Cocoon 1. In Cocoon1 it is actually possible to get the OutputStream, I'm using that in my soap taglib. My auth taglib makes heavy use of redirects (such as redirecting you to the l

Selectors and Matchers vs components in sitemaps

2001-07-11 Thread HALLOWELL,KARL (HP-Cupertino,ex1)
I noticed that the packages org.apache.cocoon.selection and org.apache.cocoon.matching contain a number of "code factories" (writes a StringBuffer of java code) while none of the other packages (in cocoon) do. Does this mean that if I write a selector or matcher that I actually should write a Code

C2 and Postgres

2001-07-11 Thread Eric ...
Can you tell me how to configure the database driver in Cocoon2 in order to connect to my postgres database named "dtw". The following first XSP code is working perfectly well under Cocoon1 :     xmlns:xsp="http://www.apache.org/1999/XSP/Core"  xmlns:esql="http://apache.org/cocoon/SQL/v2">  o

[C2] Why different Pipelines

2001-07-11 Thread Stefan Seifert
Hello. I've one question concerning pipelines in C2: What is the difference in using one large pipeline to splitting it up in several smaller pipelines? I cannot see a differene from the documentation? Any performance/feature differences? Is it possible to use parts of one pipeline in another pi

Re: [C1] Generating a HTML frameset using XML/XSLT

2001-07-11 Thread Paul Sprague
Hey,     I can't seem to tell if my last posted got to the mailing list. So sorry if this is redundant.     The problem is that the noresize key word is not in the form of a name="value" pair.   should be this, in both places where noresize is used.       - Original Message -

C1 to C2

2001-07-11 Thread Andre Juffer
Hi, just recently I have posted a question about having cocoon2 recognizing my own context under tomcat/webapp. This may be a tomcat problem, still I had cocoon1.8.2, together with the apache web server and tomcat, working just fine with my own context. Obviously, I would like to be able to d

RE: [C1] Generating a HTML frameset using XML/XSLT

2001-07-11 Thread Kevin D'Allaird
Adrian, You must use valid XML... try noresize="yes" > scrolling="no" frameborder="0" noresize/> -Original Message- From: Adrian Geissel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 11:37 AM To: [EMAIL PROTECTED] Subject: [C1] Generating a HTML frameset using XML/XSLT Hi,

RE: [C2] using XInclude Transformer

2001-07-11 Thread SUBRAHMANYAM,VEENA (HP-MountainView,ex1)
Is there a sample that uses the XInclude Transformer, that I could get my hands on? :-) Thanx in advance Veena -Original Message- From: Jeremy Quinn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 9:13 AM To: Cocoon Users Subject: [C2] using XInclude Transformer Hi All, I a

Re: You cannot get a Poolable before the pool is initialized

2001-07-11 Thread JStalnecker
got it fixed thx anyway Mariano Kamp cc:

Re: [C2] using XInclude Transformer

2001-07-11 Thread Berin Loritsch
Jeremy Quinn wrote: > > Hi All, > > I am struggling to use the XInclude Transformer in Cocoon 2. There are two issues with it (I just got done fixing it). 1) You need to include an xml:base="context://" This tells the Xinclude processor where the root is. P.S. The newly checked in ver

FOP, setting header size based on content

2001-07-11 Thread Darrel Riekhof
The header section on our reports needs to grow or shrink based on it's content. What is the best way to do this? I was thinking about embedding header size info in the xml file. It probably makes more sense to put it in the xsl file, but I was thinking all of our xsl files would be static, and

Re: AW: [C2] Redirects

2001-07-11 Thread Berin Loritsch
Ulrich Mayring wrote: > > Berin Loritsch wrote: > > > > That is a problem inherent in JSP, ASP, and ColdFusion. Each has their own >proprietary > > way of handling logic. XSP is the first "scripting" language that allows you to > > use logicsheets defined in other languages--but any time you u

To Eric Vernichon or Benjamin Pignier, other: please ignore

2001-07-11 Thread Mariano Kamp
Hi there, sorry for disturbing the list with "private" mail, but I got an email regarding the list with an invalid sender address. I'm posting it here to get it back to the original sender. Sorry, Mariano Eric, if you read this mail ?!?! , please clean up your email account. I got thi

Re: AW: [C2] Redirects

2001-07-11 Thread Berin Loritsch
Ulrich Mayring wrote: > > Christopher Painter-Wakefield wrote: > > > > I think the point is also well taken that, hey, redirects > > are a part of the current state of the art > > in web programming. > > Not only that, redirects are part of the HTTP standard. So they should > be the first thing

Re: [C1] Generating a HTML frameset using XML/XSLT

2001-07-11 Thread Paul Sprague
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  xmlns:xsp="http://www.apache.org/1999/XSP/Core"  xmlns:mystuff="mystuff.com" >             {@frame-top}" marginwidth="10" marginheight="10" scrolling="no" frameborder="0">            {@frame-sidebar}" m

Re: [C1] Generating a HTML frameset using XML/XSLT

2001-07-11 Thread Benoît Chauvet
I think the error message is clear enough... The SAX parser waits for an "=" character after the attribute "FRAME"... Maybe it doesn't allow the '-' character you use... Try instead... -- Benoît Chauvet - Please check that y

Re: AW: [C2] Redirects

2001-07-11 Thread C. Gaffga
What's the Problem about flow. It's also very simple with coocon. Because a page that redirect doesn't output anything, why you dont't use a simple JSP page. from there you can redirect to an XML/XSP page with output. Christoph Gaffga - Original Message - From: "Ulrich Mayring" <[EMAIL

[C2] using XInclude Transformer

2001-07-11 Thread Jeremy Quinn
Hi All, I am struggling to use the XInclude Transformer in Cocoon 2. My TomCat Context is /hrc2/ I access the URL /hrc2/index.html In my file I have the following: This 'href' worked fine in Cocoon 1, but in Cocoon 2 gives me : org.apache.cocoon.ProcessingException: Faile

[C2] using XInclude Transformer

2001-07-11 Thread Jeremy Quinn
Hi All, I am struggling to use the XInclude Transformer in Cocoon 2. My TomCat Context is /hrc2/ I access the URL /hrc2/index.html In my file I have the following: This 'href' worked fine in Cocoon 1, but in Cocoon 2 gives me : org.apache.cocoon.ProcessingException: Faile

Re: AW: [C2] Redirects

2001-07-11 Thread Ulrich Mayring
Berin Loritsch wrote: > > That is a problem inherent in JSP, ASP, and ColdFusion. Each has their own >proprietary > way of handling logic. XSP is the first "scripting" language that allows you to > use logicsheets defined in other languages--but any time you use the >tag, > you lose portabil

Re: AW: [C2] Redirects

2001-07-11 Thread Ulrich Mayring
Christopher Painter-Wakefield wrote: > > I think the point is also well taken that, hey, redirects > are a part of the current state of the art > in web programming. Not only that, redirects are part of the HTTP standard. So they should be the first thing that is supported by a web app framewor

[C1] Generating a HTML frameset using XML/XSLT

2001-07-11 Thread Adrian Geissel
Hi,   We are just trying to put a dynamic frameset as the primary entry-point for our application, and using all that we've learnt so far, we created an XSP file with an associated stylesheet (included at the end of this mail). We get an unusual SAX exception when accessing the frameset:   o

Re: AW: [C2] Redirects

2001-07-11 Thread Ulrich Mayring
Berin Loritsch wrote: > > No, I'm saying, "don't use redirects when another tool will work better". > I'm challenging the concept that you _have_ to use redirects to control > program flow. Ok, you're saying I should select my logic from inside Beans. I don't use Beans for various reasons and th

Re: AW: [C2] Redirects

2001-07-11 Thread Berin Loritsch
Anders Lindh wrote: > > >One of the issues is technical in nature. Because of the SAX stream > approach > >that Cocoon 2 uses, the XSP page is being serialized AS it is being parsed. > >What is happening is that each SAX event (startDocument, startElement, > etc), > >is being propogated through

Re: AW: [C2] Redirects

2001-07-11 Thread Christian Haul
On 11.Jul.2001 -- 05:06 PM, Anders Lindh wrote: > >One of the issues is technical in nature. Because of the SAX stream > approach > >that Cocoon 2 uses, the XSP page is being serialized AS it is being parsed. > >What is happening is that each SAX event (startDocument, startElement, > etc), > >is

You cannot get a Poolable before the pool is initialized

2001-07-11 Thread JStalnecker
I am trying run an sql statement in an XML. I have added my driver class into my web.xml, added a new datasource to my config, and added a new match pattern in the sitemap to process the request. I still get the following error: You cannot get a Poo

Re: AW: [C2] Redirects

2001-07-11 Thread Berin Loritsch
Ulrich Mayring wrote: > > It's not up to me what framework our business partners use. But I have > to able to communicate with them - the Sitemap is an inappropriate > format for this communication. It's too low-level, we need to think in > concepts :-) I agree. I don't think the Sitemap is the

RE: AW: [C2] Redirects

2001-07-11 Thread Anders Lindh
>One of the issues is technical in nature. Because of the SAX stream approach >that Cocoon 2 uses, the XSP page is being serialized AS it is being parsed. >What is happening is that each SAX event (startDocument, startElement, etc), >is being propogated through the entire SAX chain and being tran

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo
> > > 2) load this page in your browser. (At this point, the page > > > prints 'FOO Hi, > > > I'm your ...' in my browser) > > > > OK. > > Do you see 'FOO ...' in your browser ? If not, what is the > *complete* path > to the _clean-page.java file and the *complete* path to your > clean-page.

Re: AW: [C2] Redirects

2001-07-11 Thread Ulrich Mayring
Berin Loritsch wrote: > > Oh, you aren't being fair. Just because it is too easy to do in > scripting frameworks, doesn't mean we should allow the same abuse > of redirects in Cocoon. You just have to think harder. Well, it's a design decision. I expect from a web publishing framework that it

RE: AW: [C2] Redirects

2001-07-11 Thread Christopher Painter-Wakefield
I agree. It is fine to discourage use of redirects, but dictating it to everyone by arbitrarily removing it from the framework is, in my opinion, a poor choice. Trust us to make mature choices about what constitutes good design, even while educating us on a better way. I think the point is als

Re: AW: [C2] Redirects

2001-07-11 Thread Berin Loritsch
Anders Lindh wrote: > > >> Ok, thanks a lot for your info. I now understand it is possible, but > >> extremely complicated and verbose to do redirects in Cocoon2 :-) > >Oh, you aren't being fair. Just because it is too easy to do in > >scripting frameworks, doesn't mean we should allow the same

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
> > 2) load this page in your browser. (At this point, the page > > prints 'FOO Hi, > > I'm your ...' in my browser) > > OK. Do you see 'FOO ...' in your browser ? If not, what is the *complete* path to the _clean-page.java file and the *complete* path to your clean-page.xml file ? They should

RE: AW: [C2] Redirects

2001-07-11 Thread Anders Lindh
>> Ok, thanks a lot for your info. I now understand it is possible, but >> extremely complicated and verbose to do redirects in Cocoon2 :-) >Oh, you aren't being fair. Just because it is too easy to do in >scripting frameworks, doesn't mean we should allow the same abuse >of redirects in Cocoon.

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo
> OK, let's try step by step : > 0) restart cocoon; delete all the files named '_clean-page.*' in your > repository DONE > 1) in the (your servlet engine > path)/webapps/cocoon/samples/xsp directory, > change the file 'clean-page.xml' by adding FOO to the 1st > paragraph like > this: >

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
OK, let's try step by step : 0) restart cocoon; delete all the files named '_clean-page.*' in your repository 1) in the (your servlet engine path)/webapps/cocoon/samples/xsp directory, change the file 'clean-page.xml' by adding FOO to the 1st paragraph like this: FOO Hi, I'm your ... 2) l

Re: AW: [C2] Redirects

2001-07-11 Thread Berin Loritsch
Ulrich Mayring wrote: > > Marcus Crafter wrote: > > > [...] > > Ok, thanks a lot for your info. I now understand it is possible, but > extremely complicated and verbose to do redirects in Cocoon2 :-) Oh, you aren't being fair. Just because it is too easy to do in scripting frameworks, doesn't

Re: AW: [C2] Redirects

2001-07-11 Thread Ulrich Mayring
Berin Loritsch wrote: > > If you think of ways to minimize redirects, then you can minimize the number > of Actions you have to write. Heh, this reminds me of the discussion a few days ago, where I was criticized for saying: "Don't use Internet Explorer and you won't incur the IE/Cocoon/PDF prob

Re: AW: [C2] Redirects

2001-07-11 Thread Berin Loritsch
Anders Lindh wrote: > > >> Doing a 'grep -r sendRedirect * | wc -l' on the above app I get 104. > >> Does this mean I have to write 104 actions? Or is it possible to write a > >> generic redirect action > > If they are all totally different sendRedirect tests, used only once > > in in

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo
OK, I upgraded to C1.8.2. Same problem: .java and .class files are re-created in the repository, but in the browser after reloading I see the old version of "clean-page.xml". In the original cocoon.properties I just changed the repository dir to an absolute path. That's all. Paolo. > -Origin

Re: [C20] FP taglib

2001-07-11 Thread Jeremy Quinn
At 3:37 PM +0300 6/7/01, Viktors Rotanovs wrote: >does FP taglib exist in Cocoon 2.0, or should I use >something else to write to XML files? It is not ported to C2 yet. I hope to do it, but am too busy to do this at the moment. regards Jeremy -- __

Re: FP taglib and concurency access

2001-07-11 Thread Jeremy Quinn
At 10:52 AM +0200 6/7/01, LEBRETON Philippe wrote: >does FP manage the concurrency access of the same node? No, I am afraid it does not. regards Jeremy -- ___ Jeremy Quinn Karma Dive

Building Cocoon 2 Error

2001-07-11 Thread Lok Yek Soon
Hi, I'm using RH7, and have Tomcat 3.2 and JDK running/installed. I downloaded Cocoon CVS following the instructions here: http://xml.apache.org/cocoon2/install.html when I try to build Cocoon WAR package using the following command: ./build.sh -Dinclude.webapp.libs=yes webapp I got

RE: AW: [C2] Redirects

2001-07-11 Thread Anders Lindh
>> Doing a 'grep -r sendRedirect * | wc -l' on the above app I get 104. >> Does this mean I have to write 104 actions? Or is it possible to write a >> generic redirect action > If they are all totally different sendRedirect tests, used only once > in individual xsp pages, you may need

Re: Sorting search results in Cocoon

2001-07-11 Thread Sergio Carvalho
The most efficient way would be to limit the XML source - having the search engine do the sorting and limiting for yourself. That being impossible, you can do it with an XSLT transformation for sorting: http://www.w3.org/TR/xslt.html#sorting http://www.w3.org/TR/xslt.html#copying and another

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
Well, it could, that's why I advised you to upgrade: at least, we could compare comparable things. > -Message d'origine- > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]] > Envoyé : mercredi 11 juillet 2001 12:16 > À : '[EMAIL PROTECTED]' > Objet : RE: XSP with Cocoon 1.8.1 - Cache Problem

Re: AW: [C2] Redirects

2001-07-11 Thread Ulrich Mayring
Marcus Crafter wrote: > [...] Ok, thanks a lot for your info. I now understand it is possible, but extremely complicated and verbose to do redirects in Cocoon2 :-) > I've found that over time, my sitemap testing has moved from focusing > on technical nitty gritty to focusing on

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo
> Yes, of course, if you java file has changed, you'll (well, > should) see the > modification. > I've added "foo" in the "I've bee requested...", and it > appears in the java > file, as well as in the html page generated... Is it possible that Cocoon internal cache isn't updated after the crea

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
Yes, of course, if you java file has changed, you'll (well, should) see the modification. I've added "foo" in the "I've bee requested...", and it appears in the java file, as well as in the html page generated... Olivier -Message d'origine- > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo
> Well, you should upgrade to C1.8.2 (latest versions always > have less bugs, > if this is one). > This example works fine (the page counter is incremented > everytime I reload > the page) with C1.8.2 NS, lynx and IE... But have you tried to modify for example the text of clean-page.xml and to

Re: AW: [C2] Redirects

2001-07-11 Thread Marcus Crafter
Hi Ulrich, I've found that over time, my sitemap testing has moved from focusing on technical nitty gritty to focusing on concepts. Its a subtle difference, but it makes conditional checking for your examples below a little easier. On Wed, 11 Jul 2001, Ulrich Mayr

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
Well, you should upgrade to C1.8.2 (latest versions always have less bugs, if this is one). This example works fine (the page counter is incremented everytime I reload the page) with C1.8.2 NS, lynx and IE... (...) > > It's probably a navigator's cache problem. Especially with IE > > (you can't

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread Dongilli Paolo
> It's probably a navigator's cache problem. Especially with IE > (you can't > deactivate the cache). > Try to clear your navigator's cache I tried with Netscape 4.76, with Lynx and I still see the old version of the document. The sole solution is to restart Cocoon in order to see the modificat

inserting xml tags with xsp

2001-07-11 Thread franck delarue
hello, I'm still searching how to insert xml tags with a xsp page. I'm trying to use the tag, but when I just declare the namespace : xmlns:util="http://www.apache.org/1999/XSP/Util"; in my xsp page, which is very simple (the most). Cocoon2 throws me an error : org.apache.cocoon.ProcessingE

RE: XSP with Cocoon 1.8.1 - Cache Problem?

2001-07-11 Thread JEULIN Olivier
It's probably a navigator's cache problem. Especially with IE (you can't deactivate the cache). Try to clear your navigator's cache > -Message d'origine- > De : Dongilli Paolo [mailto:[EMAIL PROTECTED]] > Envoyé : mardi 10 juillet 2001 20:17 > À : '[EMAIL PROTECTED]' > Objet : XSP with Co

Re: AW: [C2] Redirects

2001-07-11 Thread Christian Haul
On 11.Jul.2001 -- 10:08 AM, Ulrich Mayring wrote: > Carsten Ziegeler wrote: > > > >The right place for application flow and redirects is the sitemap in > >c2. So you can make redirects in the sitemap using the map:redirect-to > >element or you can write your custom action which can do

JPython + cache control

2001-07-11 Thread franck delarue
hello, I use JPython's pages to produce xml ( JPython -> xml -> html ) with cocoon2 and tomcat on linux redhat. I've seen that there is a possibility of controling the cache of cocoon with xsp pages ( using the method "hasChanged"). Is there any way to do this with JPython ? (I use a database and

Re: AW: [C2] Redirects

2001-07-11 Thread Ulrich Mayring
Carsten Ziegeler wrote: > >The right place for application flow and redirects is the sitemap in >c2. So you can make redirects in the sitemap using the map:redirect-to >element or you can write your custom action which can do a redirect. But how to do that conditionally then? Here's

AW: [C2] Redirects

2001-07-11 Thread Stefan Seifert
> > Anders Lindh wrote: > > > > > > Migrating from C1 becomes so much more complicated > > > when XSP redirects are not available... > > > > I agree. There's no way I can port my old Cocoon1 apps > without redirects > > being available conditionally (i.e. depending on user > input). Perhaps >

RE: [C2] Redirects

2001-07-11 Thread Torsten Curdt
> Anders Lindh wrote: > > > > Migrating from C1 becomes so much more complicated > > when XSP redirects are not available... > > I agree. There's no way I can port my old Cocoon1 apps without redirects > being available conditionally (i.e. depending on user input). Perhaps > this is possible wit

Re: [C2] Redirects

2001-07-11 Thread Ulrich Mayring
Anders Lindh wrote: > > Migrating from C1 becomes so much more complicated > when XSP redirects are not available... I agree. There's no way I can port my old Cocoon1 apps without redirects being available conditionally (i.e. depending on user input). Perhaps this is possible with the Sitemap, b

AW: [C2] Redirects

2001-07-11 Thread Carsten Ziegeler
Hi, we had several month ago a lengthy discussion about this redirection thing. These are the two major reasons for removing the redirect from the xsp: 1. Working in a servlet environment and doing redirects is not that easy. If you do a redirect when something is written already to the outp

RE: Sorting search results in Cocoon

2001-07-11 Thread Beauprez Sven
Jason, Here is a possible solution for C2 (don't know which version you are using) The sorting part is the most difficult part. If it is possible to let the searchengine sort the results, you should go for this approach. Otherwise you have to write a transformer which does the sorting, but this