Cocoon is ready and it has been for a while. We've been using cocoon
for interface to our application for last 2 years and deploying it in *very*
large companies. We have 1000+ XSP talking to EJBs and I never encountered
the problem described in the bug you pointed out (1.7.3 - 2.0.3 releases).
JS
There is nothing like that in XSP. I'm sure most people here
will tell you to use transformers, actions, or better yet flow
from 2.1. Since I had XSPs left over from 1.x version and
I like having data access, logic and error handling in the same
place (the XSP) I developed my own logicsheet to that
The XIncludeTransformer parses the included file into DOM,
and then streams the included part back into SAX. In my case
I have 1000 pages including parts of 10 others so I hacked
the XIncludeTransformer to keep the DOMs of those 10 pages in
memory. This is not the best solution but it's fastee,
I looked at the javadoc for java.lang package (jdk1.3.1)
and java.nio.charset.Charset (jdk1.4.1) and it
looks like the UTF-8 is the correct name.
I have a feeling setting the container encoding to ISO-8859-1
is what fixed your problem.
Another word of caution is the java.net.URLEncoder class that
ve some serious problem related to your
> specific machine. It would be excellent if you can
> start afresh and follow the installation.html page
> explicitly.
>
> If you notice any documentation flaws on the way, then
> please tell.
>
> --David
>
> Artur Bialecki wrote:
I tried all samples that didn't require scrachpad stuff.
Following is the result. I've also submitted couple of
patches against the 2.0.3 branch for other problems that
are not included here.
Enviroment:
Win2k SP3 (5.00.2195)
Tomcat 4.1
Cocoon 2.0.3 branch (Nov 30)
JDK 1.3.1_02-b02
Pages with p
It seems that the only way to output request parameters
encoded with UTF-8 is to call request.setCharacterEncoding("utf-8");
on **every** request. Is there a better (simpler) way of achieving
end-to-end UTF-8 for the whole site?
Also, setting encoding will call the decode() method
on every access
I never actually used the esql logicsheet but did you
try tag. For example,
x
Artur...
-Original Message-
From: Kazmír, Jaroslav [mailto:[EMAIL PROTECTED]]
Sent: November 19, 2002 2:04 PM
To: '[EMAIL PROTECTED]'
Subject: esql - dynamic result table
Hello,
Does someone know how
> Who should close the element? The transformer can not send an
> endElement() until everything inside is processed. Of course you have
to
Ofcourse, I don't know what I was thinking.
> Does this make it a bit clearer? Everybody can of course improve my
This makes it very clear.
Thanks Joer
his is processed by a
> transformer to and
> sent to the browser. Even if it's a very poor solution, there
> shell be
> no problem with it. I prefer the test while setting up the pipeline.
>
> Regards,
>
> Joerg
>
> Artur Bialecki wrote:
> >>-
cted and the generation has (possibly)
> started, you can do that by outputting the tag in the
> output HTML.
>
>
> or
> http://some.com/other/url"/>
>
> "0" means no delay.
How would this work if half of my page has already been
sent to the browser includ
Witold,
First of all processing of XSP is done by a Generator
which is part of pipeline *execution*. This means that
it's too late to redirect at that point since some data
might already been sent back to the browser (depends
on the size of your serializer buffer).
You should only redirect duri
> From: Nicola Ken Barozzi [mailto:nicolaken@;apache.org]
> Artur Bialecki wrote:
> >
> > Is there a way to redirect internally (without going back
> to the browser)
> > from an action? Actions get a Redirector but it is a
> SitemapRedirector
> > that
Is there a way to redirect internally (without going back to the browser)
from an action? Actions get a Redirector but it is a SitemapRedirector
that calls HttpEnvironment.redirect(). Is there any way
I can get a ForwardRedirector in my action.
Thanks,
Artur...
--
Check out the "Calling resources" on this page
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html
Maybe you can organize the 'meat' of your pipeline as
as a resource and just map:call it from your main pipeline.
Artur...
> -Original Message-
> From: Josema Alonso [mailto:alonso
Just use appropriate selector:
http://xml.apache.org/cocoon/userdocs/selectors/selectors.html
Artur...
> -Original Message-
> From: Josema Alonso [mailto:alonso@;aafunky.com]
> Sent: November 4, 2002 11:39 AM
> To: Cocoon-Users
> Subject: dynamically choosing an action at runtime
>
>
>
Try Jcrontab
http://jcrontab.sourceforge.net/index.shtml
Artur...
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:Sylvain.Thevoz@;swisscom.com]
> Sent: October 28, 2002 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Cocoon task scheduler
>
>
> I completely agree with you an
I've been using Cocoon 1 and 2 with EJBs for last
2.5 year for enterprise size application. One advantage
I had was that I decided to use cocoon from the beginning.
so my EJBs can present themselves as XML which makes for
easy insertion into the XML stream.
The biggest problem I had was handling of
ng at xsp.xsl and
session.xsl in cocoon source.
Artur...
>
> Werner
>
> Artur Bialecki wrote:
>
> > Can you move your before the tag?
> > Or try this
> >
> >String productId = request.getParameter("productid");
> >
> >
Can you move your before the tag?
Or try this
String productId = request.getParameter("productid");
although the init-page tag might only work as a child
of .
Artur...
> -Original Message-
> From: Sonny Sukumar [mailto:[EMAIL PROTECTED]]
> Sent: October 15, 2002 1:58 PM
> To: [
> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
> Sent: September 28, 2002 11:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Master-Detail form using Cocoon
>
>
>
> forms:
>
> http://xml.apache.org/cocoon/userdocs/concepts/xmlform.html
>
> (follow the howto link
Is there any way to obtain statistics on component pools
used by cocoon (2.0.3). Also, are component pools soft or
hard limit by default?
Thanks,
Artur...
-
Please check that your question has not already been answered in the
Is there a way to redirect internally (without going back to the browser)
from an action? Actions get a Redirector but it is a SitemapRedirector
that calls HttpEnvironment.redirect(). Is there any way
I can get a ForwardRedirector in my action.
Thanks,
Artur...
---
That article was published on January 1, 1970
only few days before I was born.
Can't believe cocoon is older than I am :)
Artur...
-
Please check that your question has not already been answered in the
FAQ before posting.
Sitemap parameters that are returned by an actions
are not available when doesn't have any
child nodes other than .
So the following doesn't work:
but this does:
Any reason for this ??
Thanks,
Artur...
---
Your mistake was using cocoon.xconf from src/webapp/WEB-INF.
For some reason it doesn't define the compiler parameter for
.
Someone should fix this.
Artur...
> -Original Message-
> From: Werner Guttmann [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 5:40 AM
> To: [EMAIL P
If it Portgresql supported the CONNECT BY statement
I would move to it today.
Artur...
> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 11:17 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sexy open source
>
>
>
> My experience also sho
Was Directory service mentioned ?
If not than http://openldap.org.
Artur...
> -Original Message-
> From: Hochsteger Andreas /INFO-MA [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 11:32 AM
> To: '[EMAIL PROTECTED]'
> Subject: AW: sexy open source
>
>
> I don't know, if you
-Original Message-
From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: sexy open source
> -Original Message-----
> From: Artur Bialecki [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, Au
> -Original Message-
> From: Vegan Portal [mailto:[EMAIL PROTECTED]]
>
>
> 7) Content Framework
> Proposal: Cocoon, what else :)
> Remarks: The task of Cocoon is to separate Logic from
> Design, what it should be good at. I want to get more
> detailed here: Starting with structured XSP,
If you want to do it with the current system you
can:
1 - create an action that processes you XSP and stores
it as DOM on the request, similar to ServerPagesAction
2 - create an action that given XPath will find the
node/attribute in a stored DOM and return it's value
as a sitemap parameter
> -Original Message-
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> > From: Artur Bialecki [mailto:[EMAIL PROTECTED]]
> >
> >
> > I'm upgrading from 2.0.2 to 2.0.3 and now I get the following error:
> >
> > ERROR (2002-08-09) 1
I'm upgrading from 2.0.2 to 2.0.3 and now I get the following error:
ERROR (2002-08-09) 11:15.00:338 [sitemap] (/NASApp/dfc/common/controlpanel.xml)
Thread-39/Handler: Error compiling sitemap
java.io.FileNotFoundException: /WEB-INF/work/org/apache/cocoon/www/sitemap_xmap.java
(No such file
> -Original Message-
> From: Kulkarni, Mohan (GEL, MSX) [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 12, 2002 11:27 AM
> To: '[EMAIL PROTECTED]'
> Cc: Brown, Wes (GEL, MSX)
> Subject: Problems running cocoon 2.0.2 on iPlanet application server 6.5
>
>
> Has anyone configured cocoon
>
> Hello,
>
> If you deploy an Enterprise ARchive (.ear, containing the cocoon.war) you have to
>add a "web context" in the deploy conf.
> file application.xml called "cocoon".
>
> Sylvain
>
> -Message d'origine-
> De: Artur Bialecki [
[ C-2.0.2, JDK1.3.1, Tomkat 4.0.4.b2 ]
I deploy the cocoon servlet as part of a j2ee application
which uses other servlets as well. So, I don't have the /
mapped to cocoon (just *.xsp and *.xml). How can I access
Cocoons status page normally accessed with /cocoon/status
Thanks,
Art
[ C-2.0.2, JDK1.3.1, Tomkat 4.0.4.b2 ]
I deploy the cocoon servlet as part of a j2ee application
which uses other servlets as well. So, I don't have the /
mapped to cocoon (just *.xsp and *.xml). How can I access
Cocoons status page normally accessed with /cocoon/status
Thanks,
Artur...
--
> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 27, 2002 9:32 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Giving up! Cocoon too big, slow and confusing
>
>
> Good post :)
>
> Wake up, guys! John raised a real issue. You can't simply say "D
This is what we do for client side validation.
WARNING: requires javascript but my clients are not
"regular" web users.
For my app I provide validation in my XSP, eg:
^$|^[0-9a-zA-Z_]+$/ig
^$|^[0-9a-zA-Z.,_\\-]+\\@[0-9a-zA-Z._\\-]+\
Works fine for me.
Artur...
> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 12:22 PM
> To: Cocoon-Users (E-mail)
> Subject: iPlanet iAS 6.5 + C2.0.3 - comments/CR in init-params of
> servlet
>
>
> It seems that when I deploy webapp
I found that iAS 6.x ignores contents my WEB-INF/lib,
so I have to put all cocoon/other libs in iAS's classpath
in registry
Artur...
> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 7:54 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: C2
Look through the archive. As I said in one of my post
Migrating from Cocoon1 to Cocoon2 is like converting
a gorilla to a submarine.
Took me 6 weeks to move our (complex) app from
C1 to C2 (I consider this VERY long time). I had to
hack Cocoon and Saxon since Xalan didn't work at all with my
comp
> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 12:59 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: iPlanet 6.5 + Cocoon - is there still problem with serv;et
> container?
>
>
> > Don't know exactly what problem you're talking about b
iPlanet DOES suck, but so does every other j2ee container.
As with all infants you have to do exactly what they want
or they will cry/barf and don't forget to clean up their shit.
Don't know exactly what problem you're talking about but
I have Cocoon 2.0.2 (with Saxon 6.5.2, jexen) running under
In your pipe ine you need to specify serverpages type for the
generator, otherwise it will use the straight file generator.
So try this
Also you don't seem to have any transformes to convert the
generated xml to html/xhtml before you serialize it, you may
want to add that too.
Artur...
> ---
I've tried using cocoon2 with JBoss 2.4.4 and Tomcat 4.0.3 and
couldn't get it to work. When I installed Tomcat 4.0.4b2 everything
worked. I think some other people on this list also had problems
with 4.0.3.
HTML mail == BAD mojo
Artur...
-Original Message-
From: Charles Wishpot [mail
The example you provided only declares the actions. In order
to use them you have to use them in you pipelines using
the or using the cocoon-action request parameter
(check the action user docs).
Also, examin your generated sitemap java file sitemap_xmap.java
probably in your appservers WEB-INF
>From what I know, basically {name} is a representation of
a sitemap parameter which are used by sitemap components.
For example, if your pipeline wants to call another (resource)
pipeline you with a target parameter you would do it this way
now in your "simple-page" pipline you can access t
2 5:13 PM
> To: [EMAIL PROTECTED]
> Subject: Re: multiple XSLTs for the same XML
>
>
> Hi and thanks, but I want to do it without import or include.
>
> -Rob
>
> Artur Bialecki wrote:
>
> >I use the
> >before my first
> >and it works.
> >
>
I use the
before my first
and it works.
Artur...
> -Original Message-
> From: Robert Koberg [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 5:00 PM
> To: [EMAIL PROTECTED]
> Subject: multiple XSLTs for the same XML
>
>
> Hi,
>
> I am having trouble converting a set of XSLT
(6.5.2) and resolver (Cocoon 2.0.2)
>
>
> Artur,
>
> What version of Cocoon are you using? 2.0.2 or something closer to
> 2.0.3?
>
> Steve
>
> > -Original Message-
> > From: Artur Bialecki [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 21,
Also, saxon 6.5.2 and 7 has a bug with identity transform
because of bug in DOMDriver.
So, if you're using XPath (eg, xinclude transformer) things
might not look the way you expect them to.
I told the author of Saxon how to fix this bug, but haven't
heard anything back.
Artur...
> -Original
Porting from Cocoon1 to Cocoon2 is
like converting a gorilla to a submarine.
If your project is small than I would read up
on Cocoon2, rethink your approach and start from
scratch, otherwise read on.
> -Original Message-
> From: gorillacommunications [mailto:[EMAIL PROTECTED]]
> Sent: W
When I'm finished the port, maybe, but probably not,
I spent too much time on the port already
so as allways docs get no time. Also I'm moving
from C1 to C2 so it's a little different.
Artur...
> -Original Message-
> From: Argyn Kuketayev [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, M
I've been runnig Cocoon 1.8.x on iAS 6.0 through 6.5 for last
couple of years. I'm currently porting our stuff to Cocoon 2.0.2
which will run on iPlanet 6.5.
I haven't worked much with Weblogic and Websphere but for large
applications both iPlanet and JBoss are f'ed up in their own
unique way. W
[ C-2.0.2, J-1.3.1, JB-2.4.4, TC-4.0.4b2, W2K, A-1.2.23]
I mount a different sitemap for each of my modules.
Do I have to do anything special to see log events
from the mouted sitemaps? The root sitemap reports
everything, but I don't see an log events from any
of the mounted sitemaps. Everythin
What exactly is the problem. The action documentation
has enough stuff the get started. Look in the source code
cocoon-2.0.2/src/java/org/apache/cocoon/acting for examples
of actions. Remember to define your actions in the sitemap
before you use them. Make sure that the classloader that
loaded coc
I have a problem with Saxon 6.5.2 and Xinclude transformer.
I get the following:
java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
at
org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl.selectNodeList(XPathProcessorImpl.java:65)
at
org.apache.cocoon.transformation.
Are there any configuraion changes I need to make to
use Saxon or do I just thow saxon jar in my CP.
Thanks,
Artur...
> -Original Message-
> From: Lai, Harry [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 06, 2002 5:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Need to replace xalan
>
Ok, xalan 2.3.1 and xalan head is horribly broken and from
the number of bugs I doubt will see a working vision this year.
What other XSLT processor can I use that's JAXP compliant, has
node-set extensions and is easily integrated with Cocoon2.
Thanks,
Artur...
---
> -Original Message-
> From: Christian Haul [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 6:05 PM
>> but this doesn't (regexp):
>>
>>> pattern="product/category_(view|edit)\.xml">
>>
>>
>>
>>
>>
>>
>>
> If so desired (and
Is {0} not available when using sitemap matcher?
I have a sub-sitemap where
This works (wildcard):
but this doesn't (regexp):
to make the generator find source I have to do:
src="product/category_{.
Life is hard for people porting from C1 to C2, so
many things have changed. Why, oh why?
Let's asume I'm a crazy person who uses Cocoon servlet
with other servlets and all these servelts share utility
classes. Some of this utilities use to take
HttpServletRequest as a parameter, but when I
In my company cocoon is used as the only user interface
to enerprise/network management/fulfillment (OSS,BSS) system
that includes order entry/management (workflow), inventory,
activation, etc. Since we use XML at the core of our J2EE
application and we need the ability to "brand" our interfaces
Hello,
String yourString = "blah";
...
youString
yourString
will create:
I hope ;)
For more info look in:
cocoon-2.0.2/src/java/org/apache/cocoon/components/language/xsp/java
xsp.xsl - for all xsp tags
.xsl - for how they can be used.
Artur...
> -Original Message-
>
In some cases if the cocoon.jar (and its libs) are loaded from the lib directory
they cannot see classes from the applications. Try putting cocoon.jar and its
core libs in the WEB-INF/lib directory of you war. Or you can jar up your custom
classes and throw that jar in tomcat's lib (where cocoon.
Look at xsp.xsl in org/apache/cocoon/components/language/xsp/java for
list of all xsp tags.
To solve your problem:
for( Iterator iter = v.iterator; iter.hasNext();) {
(String)iter.next()
}
You can also use if you don't know what the
tag will be.
Artur...
> -Original Message---
,
Artur...
> -Original Message-
> From: Peter Royal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 7:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [C2] Transformer problem with endDocument()
>
>
> On Monday 22 April 2002 07:00 pm, Artur Bialecki wrote:
Hello,
I get the following exception when my XSP uses
Collection where each object
in a collection is a (non-root) DOM Node.
The XML is generated correctly when I check using
cocoon-view but error apprears when xalan transformer
is in the pipeline.
I'm using Cocoon 2.0.2, with Tomcat 4.0.4b2 on
See if org.apache.cocoon.xml.dom.DOMStreamer will do the job for you.
It is used by org.apache.cocoon.components.language.markup.xsp.XSPObjectHelper
Artur...
> -Original Message-
> From: Simon Brooke [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 1:37 PM
> To: [EMAIL PROTECTE
I useto to this in C1 for imports in my logicsheets (not XSPs)
dfc.cocoon.*
dfc.cocoon.ErrorWrapper
dfc.servlet.MainMenu
but this doesn't seem to work in C2. My generated Java
files are missing both package and class names,
and I hava
Cocoon is making into comertial world. My company uses it
for all iterfaces to our sizable product (over 1000 XSPs).
We started with 1.7.4 and moved to 1.8.1 and now I'm trying
to move to 2.0.2 (I hope performance will be better).
Where Coccon is lacking is documentation, documentation, and
docu
Hello all,
I'm in the process of migrating from C1.8 to C2 and I'm writing
some actions to save form data. If saving this data generates
exceptions I redirect to predefined (in form XSP) page based
on type/id of the exception.
My question is what is the proper way to do that redirection
form act
Can you explain how this makes things faster, I assume
XSPs are not convereted to Java and complied each time
I access given XSP. Is the performance difference in
sitemap processing, cache lookups, etc. If so how much.
Thanks,
Artur...
> -Original Message-
> From: Vadim Gritsenko [mailt
Is there a migration guide (help) anywhere for
migrating from Cocoon 1.8.* to 2.0?
Thanks,
Artur...
> -Original Message-
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 29, 2001 10:59 AM
> To: [EMAIL PROTECTED]; Cocoon-Users
> Subject: [Announcement] Apach
75 matches
Mail list logo