You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Sebastien Sahuc <ss...@imediation.com> on 2000/09/20 22:42:04 UTC
[C2] what are the view components for ? And Q on command line
Hello,
Sorry, but I could not understand what are the view components purpose in
cocoon 2 sitemap. Could someone give me a hints on this ?
Indeed I started looking at the command line part Stefano wrote and it
seems to work mainly with links uri. Could someone elaborate on the exaxt
purpose of the command line, and give me an example on its usage ?
Thanks for any reply. Meanwhile I'm going to investigate by myself... :-)
Sebastien
PS: The main reason I'm looking inside the command line is because I'd
like to generate off line the XSP code since the on-the-fly generation
takes way too long IMHO.
And it takes even longer under Catalina : the CPU activity is not
reaching 100% (less than 25%) whereas with standard configuration (lib in
system classpath+ tomcat 3.2dev) the CPU is reaching 100% activity when
compiling the XSP pages!
Re: [C2] what are the view components for ? And Q on command line
Posted by Giacomo Pati <Gi...@pwr.ch>.
Sebastien Sahuc wrote:
>
> Hello,
>
> Sorry, but I could not understand what are the view components purpose in
> cocoon 2 sitemap. Could someone give me a hints on this ?
It's looking at a resource from another dimension. Browsers usually take
the html view. Crawlers would look at it from the XLink view. Semantic
crawlers would look at it from the content view (plain xml).
Stefano, you have another explanation handy ;)
> Indeed I started looking at the command line part Stefano wrote and it
> seems to work mainly with links uri. Could someone elaborate on the exaxt
> purpose of the command line, and give me an example on its usage ?
It's not finished AFAIK. The command line part uses the XLink view of
the resources to be able to crawle the hole site and get all links to
all related resources. Subsequently it request the normal view of all
resources found and saves the resources gotten to disk.
> Thanks for any reply. Meanwhile I'm going to investigate by myself... :-)
>
> Sebastien
>
> PS: The main reason I'm looking inside the command line is because I'd
> like to generate off line the XSP code since the on-the-fly generation
> takes way too long IMHO.
What do you mean by on-the-fly? Compilation?
> And it takes even longer under Catalina : the CPU activity is not
> reaching 100% (less than 25%) whereas with standard configuration (lib in
> system classpath+ tomcat 3.2dev) the CPU is reaching 100% activity when
> compiling the XSP pages!
Giacomo
--
PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
Hintereichenstrasse 7 Mobil: +41 (0)78 759 7703
CH-8166 Niederweningen Mailto:Giacomo.Pati@pwr.ch
Web: http://www.pwr.ch
Re: re [c2] what are the view components for and q on command
line@1
Posted by Sebastien Sahuc <ss...@imediation.com>.
Stefano Mazzocchi wrote :
> Sebastien Sahuc wrote:
> >
> > Hello,
> >
> > Sorry, but I could not understand what are the view components purpose
> in
> > cocoon 2 sitemap. Could someone give me a hints on this ?
> Oh, gosh, not now: anyway a small hint: views are different exit points
> of the pipelines.. you place "labels" and when you request for a
> particular view the sitemap matches the lables and when found exits and
> jump to the view handler.
> Something like
> pipeline: a ---> b -+-> c ---> d
> |
> A
> view handler : A --> X ---> Y ---> Z
> So a normal request generates 'abcd' while the "A" view of the pipeline
> will generate 'abXYZ'
> Hope this makes sense.
OK. So I can understand from a technicaly point of view, but I'm still
wondering what's the purpose of this ... though I believe there might be
a lot of usage case...
Anyway thanks for highlighting me.
Sebastien
> > Indeed I started looking at the command line part Stefano wrote and it
> > seems to work mainly with links uri.
> Yes, you ask for the link view to be able to continue crawling the site.
> > Could someone elaborate on the exaxt
> > purpose of the command line, and give me an example on its usage ?
> ./build.sh docs
> but without using Stylebook.
> > Thanks for any reply. Meanwhile I'm going to investigate by myself...
> :-)
> >
> > Sebastien
> >
> > PS: The main reason I'm looking inside the command line is because I'd
> > like to generate off line the XSP code since the on-the-fly generation
> > takes way too long IMHO.
> > And it takes even longer under Catalina : the CPU activity is not
> > reaching 100% (less than 25%) whereas with standard configuration (lib
> in
> > system classpath+ tomcat 3.2dev) the CPU is reaching 100% activity
> when
> > compiling the XSP pages!
> Hmmm, interesting...
> --
> Stefano Mazzocchi One must still have chaos in oneself to be
> able to give birth to a dancing star.
> <st...@apache.org> Friedrich Nietzsche
> --------------------------------------------------------------------
> Missed us in Orlando? Make it up with ApacheCON Europe in London!
> ------------------------- http://ApacheCon.Com ---------------------
Re: [C2] what are the view components for ? And Q on command line
Posted by Stefano Mazzocchi <st...@apache.org>.
Sebastien Sahuc wrote:
>
> Hello,
>
> Sorry, but I could not understand what are the view components purpose in
> cocoon 2 sitemap. Could someone give me a hints on this ?
Oh, gosh, not now: anyway a small hint: views are different exit points
of the pipelines.. you place "labels" and when you request for a
particular view the sitemap matches the lables and when found exits and
jump to the view handler.
Something like
pipeline: a ---> b -+-> c ---> d
|
A
view handler : A --> X ---> Y ---> Z
So a normal request generates 'abcd' while the "A" view of the pipeline
will generate 'abXYZ'
Hope this makes sense.
> Indeed I started looking at the command line part Stefano wrote and it
> seems to work mainly with links uri.
Yes, you ask for the link view to be able to continue crawling the site.
> Could someone elaborate on the exaxt
> purpose of the command line, and give me an example on its usage ?
./build.sh docs
but without using Stylebook.
> Thanks for any reply. Meanwhile I'm going to investigate by myself... :-)
>
> Sebastien
>
> PS: The main reason I'm looking inside the command line is because I'd
> like to generate off line the XSP code since the on-the-fly generation
> takes way too long IMHO.
> And it takes even longer under Catalina : the CPU activity is not
> reaching 100% (less than 25%) whereas with standard configuration (lib in
> system classpath+ tomcat 3.2dev) the CPU is reaching 100% activity when
> compiling the XSP pages!
Hmmm, interesting...
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------
Security: cocoon.properties?
Posted by Per Kreipke <pe...@onclave.com>.
Using the following setup, I can request cocoon.properties and see its
contents because it seems that Tomcat wants the cocoon.properties file in
each web application directory.
- am I doing something wrong?
- is this a security problem in the making?
Per Kreipke
Onclave, Inc.