Directories

2003-02-04 Thread Richard Cunliffe
Hi,

Cocoon 2.0.4
Tomcat 4.0.6

Can someone point me in the right direction for setting up directories?
For example my current URI and hard disk location looks like this:

http://192.168.0.5:8080/cocoon/soundpool/soundpool.html
C:\tomcat\webapps\cocoon\soundpool.xml

If I wanted to change the URI address to this:
http://192.168.0.5:8080/soundpool/soundpool.html

How would I change the disk location, and in what files would I need to
change for it to direct the incoming request to the right disk location?

Is there an equivalent to flash guide on this subject?

Thanks,

Richard.



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Directories

2003-02-04 Thread Konstantin Piroumian
This can be done in Tomcat settings (see tomcat-home/conf/server.xml) and
then add a new context pointing to your cocoon webapp directory with empty
contex path, something like this:

Context path= docBase=cocoon
...
/Context

-- Konstantin

- Original Message -
From: Richard Cunliffe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 18:20
Subject: Directories


 Hi,

 Cocoon 2.0.4
 Tomcat 4.0.6

 Can someone point me in the right direction for setting up directories?
 For example my current URI and hard disk location looks like this:

 http://192.168.0.5:8080/cocoon/soundpool/soundpool.html
 C:\tomcat\webapps\cocoon\soundpool.xml

 If I wanted to change the URI address to this:
 http://192.168.0.5:8080/soundpool/soundpool.html

 How would I change the disk location, and in what files would I need to
 change for it to direct the incoming request to the right disk location?

 Is there an equivalent to flash guide on this subject?

 Thanks,

 Richard.



 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Directories

2003-02-04 Thread Jonathan Patrick Freeman
Richard,

Unless I'm wrong (and usually I am :) I think you need to move your
directory soundpool to a webapp level and update the virtual host section
of your server.xml file in tomcat's conf directory. Your cocoon's main
sitemap is mounting your soundpool sitemap, correct? The cocoon directory is
already a webapp. You simply need to make soundpool a webapp with its main
sitemap and WEB-INF folder, jars, libs, etc...

Something like:  C:\tomcat\webapps\soundpool

This really should be documented on Wiki too. Maybe it already is?

Regards,
-Jonathan


- Original Message -
From: Richard Cunliffe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 10:20 AM
Subject: Directories


 Hi,

 Cocoon 2.0.4
 Tomcat 4.0.6

 Can someone point me in the right direction for setting up directories?
 For example my current URI and hard disk location looks like this:

 http://192.168.0.5:8080/cocoon/soundpool/soundpool.html
 C:\tomcat\webapps\cocoon\soundpool.xml

 If I wanted to change the URI address to this:
 http://192.168.0.5:8080/soundpool/soundpool.html

 How would I change the disk location, and in what files would I need to
 change for it to direct the incoming request to the right disk location?

 Is there an equivalent to flash guide on this subject?

 Thanks,

 Richard.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Directories

2003-02-04 Thread Richard Cunliffe

Jonathan,

I have just tried the suggestion by Konstantin, which was this:

Context path= docBase=cocoon
...
/Context

This has changed the address, but has not changed the physical directory
that they are in. I am trying to clean up my directories!

I have made a new folder called soundpool in webapps like you suggested,
but what do I need to change in the server.xml. I have found the section
vitual host and have copied it below:


!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps unpackWARs=true
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true/


Which part of this would I change for it to point it in the right
direction?

I am also not sure what you mean by my cocoon's main sitemap is mounting
my soundpool sitemap. The way I have it set up at the moment is that I
have main sitemap in the following directory:

C:\tomcat\webapps\cocoon\sitemap.xml

My XML and XSL files are also stored in this directory, hence the need
for some organisation. Obviously I would need to move my sitemap with
the files to there new folder, so how would I my main sitemap mount the
soundpool sitemap?

Thanks,

Richard.

(By the way I had a quick look on the wiki site, and couldn't find
anything, hence my ask for help here)



-Original Message-
From: Jonathan Patrick Freeman [mailto:[EMAIL PROTECTED]] 
Sent: 04 February 2003 15:35
To: [EMAIL PROTECTED]
Subject: Re: Directories

Richard,

Unless I'm wrong (and usually I am :) I think you need to move your
directory soundpool to a webapp level and update the virtual host
section
of your server.xml file in tomcat's conf directory. Your cocoon's main
sitemap is mounting your soundpool sitemap, correct? The cocoon
directory is
already a webapp. You simply need to make soundpool a webapp with its
main
sitemap and WEB-INF folder, jars, libs, etc...

Something like:  C:\tomcat\webapps\soundpool

This really should be documented on Wiki too. Maybe it already is?

Regards,
-Jonathan


- Original Message -
From: Richard Cunliffe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 10:20 AM
Subject: Directories


 Hi,

 Cocoon 2.0.4
 Tomcat 4.0.6

 Can someone point me in the right direction for setting up
directories?
 For example my current URI and hard disk location looks like this:

 http://192.168.0.5:8080/cocoon/soundpool/soundpool.html
 C:\tomcat\webapps\cocoon\soundpool.xml

 If I wanted to change the URI address to this:
 http://192.168.0.5:8080/soundpool/soundpool.html

 How would I change the disk location, and in what files would I need
to
 change for it to direct the incoming request to the right disk
location?

 Is there an equivalent to flash guide on this subject?

 Thanks,

 Richard.




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Directories

2003-02-04 Thread SAXESS - Hussayn Dabbous
ok,

1.) you must be pretty clear, that simply moving your
directories into another folder under webapps wont be the
solution of your problem.

2.) it depends what you want to achieve. the simplest solution
would be to make a sitemap mount. this is done as follows
(i pray, i did no mistake here, shout at me, if its wrong..)

1.) go to your cocoon main folder.
2.) cretae a folder named soundpool
3.) move your xsl xml files to that folder
4.) create a file named sitemap.xmap
put all that YOU(!) have put into the original
cocoon sitemap.xmap into this new file

5.) revert the cocoon.xmap in the cocoon main directory
to its delivery state.

6.) Now edit the reverted sitemap.xmap and add the following:

a. search for the line map:pipelines
b. directly beneath this line add the following to your sitemap:

map:pipeline
  map:match pattern=*/**
map:mount check-reload=yes
   reload-method=synchron
   src={1}/
   uri-prefix={1}/
 /map:match
/map:pipeline

7.) go to the subfolder soundpool and edit the sitemap.xconf there

a. at the top of the file add the following:

 map:components
  map:generators default=file/
  map:transformers default=xslt/
  map:serializers default=html/
  map:matchers default=wildcard/
 /map:components

 im not shure if this is really needed...

8.) Now you can enter on your URL

http://192.168.0.5:8080/soundpool/soundpool.html

and you will get what you want.

Maybe you are seeking for a solution where you can completely
separate cocoon and your soundpool physically. If you want this,
you can by creating a backend webapp soundpool and use cocoon as
frontend webapp, but this is far more complex. I just did this for
a very complex environment. But you have to think twice, if you
really want to do it like that.

regards, hussayn


Richard Cunliffe wrote:

Jonathan,

I have just tried the suggestion by Konstantin, which was this:

Context path= docBase=cocoon
...
/Context

This has changed the address, but has not changed the physical directory
that they are in. I am trying to clean up my directories!

I have made a new folder called soundpool in webapps like you suggested,
but what do I need to change in the server.xml. I have found the section
vitual host and have copied it below:


!-- Define the default virtual host --
Host name=localhost debug=0 appBase=webapps unpackWARs=true
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true/


Which part of this would I change for it to point it in the right
direction?

I am also not sure what you mean by my cocoon's main sitemap is mounting
my soundpool sitemap. The way I have it set up at the moment is that I
have main sitemap in the following directory:

C:\tomcat\webapps\cocoon\sitemap.xml

My XML and XSL files are also stored in this directory, hence the need
for some organisation. Obviously I would need to move my sitemap with
the files to there new folder, so how would I my main sitemap mount the
soundpool sitemap?

Thanks,

Richard.

(By the way I had a quick look on the wiki site, and couldn't find
anything, hence my ask for help here)



-Original Message-
From: Jonathan Patrick Freeman [mailto:[EMAIL PROTECTED]] 
Sent: 04 February 2003 15:35
To: [EMAIL PROTECTED]
Subject: Re: Directories

Richard,

Unless I'm wrong (and usually I am :) I think you need to move your
directory soundpool to a webapp level and update the virtual host
section
of your server.xml file in tomcat's conf directory. Your cocoon's main
sitemap is mounting your soundpool sitemap, correct? The cocoon
directory is
already a webapp. You simply need to make soundpool a webapp with its
main
sitemap and WEB-INF folder, jars, libs, etc...

Something like:  C:\tomcat\webapps\soundpool

This really should be documented on Wiki too. Maybe it already is?

Regards,
-Jonathan


- Original Message -
From: Richard Cunliffe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 10:20 AM
Subject: Directories



Hi,

Cocoon 2.0.4
Tomcat 4.0.6

Can someone point me in the right direction for setting up


directories?


For example my current URI and hard disk location looks like this:

http://192.168.0.5:8080/cocoon/soundpool/soundpool.html
C:\tomcat\webapps\cocoon\soundpool.xml

If I wanted to change the URI address to this:
http://192.168.0.5:8080/soundpool/soundpool.html

How would I change the disk location, and in what files would I need


to


change for it to direct the incoming request to the right disk


location?


Is there an equivalent to flash guide on this subject?

Thanks,

Richard.






-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands

Generic mount directories on release or development

2003-02-03 Thread e nio

   What are the differences in usage of mount/*/**  sub/** or
the */** directories (these are match patterns I picked off the
main sitemap.xmap)? Are they not basically one and the same,
allowing one to add new cocoon application under these
directories without modification to the main sitemap.xmap and no
restart needed? The release version has the mount/*/** for
automount and sub/** on 2.0.4 while */** is on development? Will
this change with the new  block mechanism on 2.1?
  Also is there a quick way to find out which version from the
main sitemap.xmap am I working on? If one has to do some testing
on different release versions or dev, it will probably help
quite a whole lot to have the versioning declared in these
sitemap.xmap.

Regards,
e nio

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




accessing resources in sibling directories

2002-12-19 Thread Tomasz Muldner
Hi,
I'm trying to modify an example of a gallery from the Cocoon book, and have
this directory structure:

Directory: mount
sub-directories:  photos   gallery
In the photos directory there are jpeg files (in the original example,
photos were in a subdirectory of gallery).
In the gallery directory there is sitemap.xmap shown below.
When I use
http://localhost:8080/cocoon/mount/gallery/gallery

the html file is generated, but it only contains empty  thumbnails, no
pictures. It appears that the reader is the second match is not executed.
WHY??
?xml version=1.0?

map:sitemap xmlns:map=http://apache.org/cocoon/sitemap/1.0;

map:pipelines

map:pipeline

map:match pattern=gallery

map:generate src=../photos type=imagedirectory/

map:transform src=gallery.xsl/

map:serialize type=html/

/map:match


map:match pattern=../photos/**

map:read src=../photos/{1}/

/map:match

/map:pipeline

/map:pipelines

/map:sitemap

=

gallery.xsl is included in this email.



Thank you

Tomasz



?xml version=1.0?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:dir=http://apache.org/cocoon/directory/2.0;

xsl:template match=/
html
body
center
h1The Gallery/h1
/center
xsl:for-each select=dir:directory/dir:file
	img src={/dir:directory/@name}/{@name} width=100 height=100/#160;#160;
/xsl:for-each
/body
/html
/xsl:template

/xsl:stylesheet


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]


Problem with Directories Outside of cocoon...

2002-10-07 Thread Jaimes Blunt
Title: Problem with Directories Outside of cocoon...






Hi Guys,


I currently have cocoon 2.0.3 installed and running on Tomcat 4.1.12. I am able to edit my sitemap under the webapps/cocoon directory to recognize new xml and xsl's, however I now want to create a new webapp and use cocoon to parse and transform the xml's. I seem to be having some problems doing this. My question is, do I need to copy all of the cocoon files over to the new webapp, or is it possible to point the requests for the new webapp to the sitemap in the cocoon directory.

Any ideas would be mych appreciated.


Thanks All


Jaimes Blunt





Re: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jacob L E Blain Christen

Problem with Directories Outside of cocoon...[snipped all because it wasn't
plain text, sorry but I'm a snob in this regard]

Here's what I did:

1) copied all of $COCOON_HOME/WEB-INF into the root of my new webapp
2) copied $COCOON_HOME/sitemap.xmap into the root of my new webapp
3) trimmed/updated WEB-INF/web.xml and WEB-INF/cocoon.xconf to be
specific to my webapp
4) trimmed all the cocoon and cocoon-samples specific stuff out of the
WEB-INF
 directory tree
5) trimmed/updated the sitemap.xmap to be specific to my webapp

This was from memory but I think this is all I had to do.  Also, I use the
2.1-dev version from CVS and so I update my development webapps by
copying all from $COCOON_HOME/WEB-INF/lib into my webapps'
WEB-INF/lib directory and check for major changes in
WEB-INF/cocoon.xconf and make changes acoordingly.

Enjoy!

--
Jacob L E Blain Christen
Entheal LLC


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jaimes Blunt

Do you have any idea if I have to keep all of the files in the WEB-INF\lib directory, 
the WEB-INF/db directory and everything in the WEB-INF/classes directory?

Jaimes

-Original Message-
From: Jacob L E Blain Christen [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 11:55 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem with Directories Outside of cocoon...


Problem with Directories Outside of cocoon...[snipped all because it wasn't
plain text, sorry but I'm a snob in this regard]

Here's what I did:

1) copied all of $COCOON_HOME/WEB-INF into the root of my new webapp
2) copied $COCOON_HOME/sitemap.xmap into the root of my new webapp
3) trimmed/updated WEB-INF/web.xml and WEB-INF/cocoon.xconf to be
specific to my webapp
4) trimmed all the cocoon and cocoon-samples specific stuff out of the
WEB-INF
 directory tree
5) trimmed/updated the sitemap.xmap to be specific to my webapp

This was from memory but I think this is all I had to do.  Also, I use the
2.1-dev version from CVS and so I update my development webapps by
copying all from $COCOON_HOME/WEB-INF/lib into my webapps'
WEB-INF/lib directory and check for major changes in
WEB-INF/cocoon.xconf and make changes acoordingly.

Enjoy!

--
Jacob L E Blain Christen
Entheal LLC


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jerry Fowler

My cowardly approach was to
cd webapps/cocoon
cp -r tutorial EXP

edit webapps/cocoon/sitemap.xmap
to copy the reference to tutorial, and make the
appropriate change in the copy to EXP,

and then, of course, actually do something useful and
new with my new
webapps/cocoon/EXP directory.

I figure that at the point I'm really happy with the need not
to browse the tutorial or cocoon itself, I'll then edit the
webapps/cocoon/sitemap.xmap to point exclusively to my EXP.

Anyone wishing to disabuse me of a relative-newbie silliness,
please feel free...

Jaimes Blunt wrote:
 Hi Guys,
 
 I currently have cocoon 2.0.3 installed and running on Tomcat 4.1.12.  I 
 am able to edit my sitemap under the webapps/cocoon directory to 
 recognize new xml and xsl's, however I now want to create a new webapp 
 and use cocoon to parse and transform the xml's.  I seem to be having 
 some problems doing this.  My question is, do I need to copy all of the 
 cocoon files over to the new webapp, or is it possible to point the 
 requests for the new webapp to the sitemap in the cocoon directory.
 
 Any ideas would be mych appreciated.
 
 Thanks All
 
 Jaimes Blunt
 


-- 
Jerry Fowler


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jacob L E Blain Christen

 Do you have any idea if I have to keep all of the files in the WEB-INF\lib
directory, the WEB-INF/db directory and everything in the WEB-INF/classes
directory?

 Jaimes

 -Original Message-
 From: Jacob L E Blain Christen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 07, 2002 11:55 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Problem with Directories Outside of cocoon...


 Problem with Directories Outside of cocoon...[snipped all because it
wasn't
 plain text, sorry but I'm a snob in this regard]

 Here's what I did:

 1) copied all of $COCOON_HOME/WEB-INF into the root of my new webapp
 2) copied $COCOON_HOME/sitemap.xmap into the root of my new webapp
 3) trimmed/updated WEB-INF/web.xml and WEB-INF/cocoon.xconf to be
 specific to my webapp
 4) trimmed all the cocoon and cocoon-samples specific stuff out of the
 WEB-INF
  directory tree
 5) trimmed/updated the sitemap.xmap to be specific to my webapp

 This was from memory but I think this is all I had to do.  Also, I use the
 2.1-dev version from CVS and so I update my development webapps by
 copying all from $COCOON_HOME/WEB-INF/lib into my webapps'
 WEB-INF/lib directory and check for major changes in
 WEB-INF/cocoon.xconf and make changes acoordingly.

 Enjoy!

for now i've left WEB-INF/lib untouched (aka copied verbatim) but you should
be
fine without the hsqldb and deli jars--as far as i know these are only
specific to the
examples/tutorials stuff that comes bundled with cocoon (there may be others
but
i've not bothered to identify them). the WEB-INF/db directory is also
specific only
to the samples stuff bundled with cocoon so i think it safe to delete. if
there is
anything in WEB-INF/classes i think it also safe to delete as per the above
reasoning.
--
Jacob L E Blain Christen
Entheal LLC


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Problem with Directories Outside of cocoon...

2002-10-07 Thread Jacob L E Blain Christen

 Do you have any idea if I have to keep all of the files in the WEB-INF\lib
directory, the WEB-INF/db directory and everything in the WEB-INF/classes
directory?

 Jaimes

 -Original Message-
 From: Jacob L E Blain Christen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 07, 2002 11:55 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Problem with Directories Outside of cocoon...


 Problem with Directories Outside of cocoon...[snipped all because it
wasn't
 plain text, sorry but I'm a snob in this regard]

 Here's what I did:

 1) copied all of $COCOON_HOME/WEB-INF into the root of my new webapp
 2) copied $COCOON_HOME/sitemap.xmap into the root of my new webapp
 3) trimmed/updated WEB-INF/web.xml and WEB-INF/cocoon.xconf to be
 specific to my webapp
 4) trimmed all the cocoon and cocoon-samples specific stuff out of the
 WEB-INF
  directory tree
 5) trimmed/updated the sitemap.xmap to be specific to my webapp

 This was from memory but I think this is all I had to do.  Also, I use the
 2.1-dev version from CVS and so I update my development webapps by
 copying all from $COCOON_HOME/WEB-INF/lib into my webapps'
 WEB-INF/lib directory and check for major changes in
 WEB-INF/cocoon.xconf and make changes acoordingly.

 Enjoy!

for now i've left WEB-INF/lib untouched (aka copied verbatim) but you should
be
fine without the hsqldb and deli jars--as far as i know these are only
specific to the
examples/tutorials stuff that comes bundled with cocoon (there may be others
but
i've not bothered to identify them). the WEB-INF/db directory is also
specific only
to the samples stuff bundled with cocoon so i think it safe to delete. if
there is
anything in WEB-INF/classes i think it also safe to delete as per the above
reasoning.
--
Jacob L E Blain Christen
Entheal LLC


-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: Configure to support virtual directories

2002-08-14 Thread Geoff Howard

well, it may get at cocoon, if you mean for one cocoon instance to be
serving both sites.  In this case, you really need to rephrase the question
to have www.abc.com point to {COCOON_WEBAPP_DIR}/abc_cocoon and www.xyz.com
point to {COCOON_WEBAPP_DIR}/xyz_cocoon where these are sub-sitemaps.

After you have abc.com and xyz.com coming to cocoon, you'll have two options
described at 
http://xml.apache.org/cocoon/faq/faq-configure-environment.html
either have cocoon setup as the ROOT webapp, or use apache mod_rewrite or
something like it.

after that, you'd most likely use the
org.apache.cocoon.matching.WildcardHostMatcher to do something like 

map:match type=host pattern=www.*.com
map:mount check-reload=yes src={1}/ uri-prefix={1}/
map:match

then, you'd have 
xyz/sitemap.xmap and
abc/sitemap.xmap

to handle each site individually.

If you, on the other hand need to share many uri's between the sites (as the
project I've been working on) 
then you'd need to nest some matchers.  For instance, if
www.abc.com/article.html?id=3 needs to be the same as 
www.xyz.com/article.html?id=3 but with a different page wrapper, you'd use
the host to determine which xsl to 
apply instead of sending them off to a different sitemap.  

In this case, you'll want to look into sitemap variables (input modules,
etc) if you start getting into complex 
nesting and matching or are unable to reuse your pipeline logic enough.

Is that getting close to what you were looking for?

Geoff Howard

 -Original Message-
 From: Antonio Gallardo Rivera 
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 13, 2002 11:02 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Configure to support virtual directories
 
 
 Hey, this is not a Cocoon thing. This is a question about the 
 use of Tomcat or 
 what ever JSPcontainer you use.
 
 Antonio Gallardo
 
 
 El Martes, 13 de Agosto de 2002 20:10, Greg Jones escribió:
  Does anyone what is required to have Cocoon work as the default
  directory for a multiple site environment?
 
  Example would be www.abc.com docBase points to ../webapps/abc_cocoon
  And
  www.xyz.com docBase points to ../webapps/xyz_cocoon
 
  Will this work? Can there be two instances of cocoon 
 working like this?
 
 
 
  Thanks in advance --
 
 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:   [EMAIL PROTECTED]
 

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Configure to support virtual directories

2002-08-13 Thread Greg Jones
Title: Configure to support virtual directories






Does anyone what is required to have Cocoon work as the default directory for a multiple site environment?


Example would be www.abc.com docBase points to ../webapps/abc_cocoon 

And

www.xyz.com docBase points to ../webapps/xyz_cocoon


Will this work? Can there be two instances of cocoon working like this?




Thanks in advance --





Re: Configure to support virtual directories

2002-08-13 Thread Antonio Gallardo Rivera

Hey, this is not a Cocoon thing. This is a question about the use of Tomcat or 
what ever JSPcontainer you use.

Antonio Gallardo


El Martes, 13 de Agosto de 2002 20:10, Greg Jones escribió:
 Does anyone what is required to have Cocoon work as the default
 directory for a multiple site environment?

 Example would be www.abc.com docBase points to ../webapps/abc_cocoon
 And
 www.xyz.com docBase points to ../webapps/xyz_cocoon

 Will this work? Can there be two instances of cocoon working like this?



 Thanks in advance --

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Can I get directories / files as xml?

2001-07-13 Thread D. Musicant

Does cocoon enable looking through directories and the file system as xml?

In .Net I wrote my own classes to turn the File System Structure and the 
Request object into XML, but I'd prefer if cocoon had this built in. If not, 
can someone point me to the classes / files I need to work with to put this 
in myself?

Let me tell you, though, it is a big help. I did everything in XML /XSL 
(including data from AND to the database) and it made everything easier to 
manage. When I needed to get directory structure and print it to the page, 
there was no looping and particular implementation. I simply made an XSL 
page. And when I neede that info saved to the database, I can send the same 
XML without ANY ecxtra processing right to the database (I was using SQL 
Server 2000 which can read XML).
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-
Please check that your question has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]