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
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
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
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:
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
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
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
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
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
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 -
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
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,
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
got it fixed thx anyway
Mariano Kamp
cc:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>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
> > > 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.
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
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
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
> > 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
>> 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.
> 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:
>
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
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
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
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
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
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
--
__
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
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
>> 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
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
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
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
> 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
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]
> 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
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
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
> 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
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
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
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
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
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
> > 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
>
> 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
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
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
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
68 matches
Mail list logo