RE: renewed Newbie Question

2002-05-28 Thread Graaf, Edgar de (fin)

Hi,

Well then I should make another list ;-)

A. Backup your cocoon + tomcat (copy it in a zip or something)
B. Shutdown tomcat
C. Delete ROOT (in webapps of tomcat)
D. rename cocoon to ROOT
E. Open your sitemap and mount the directory of the user (look in the
example sitemap how to do that)
F. Create a sitemap for that subdirectory.
G. Start tomcat

Instead of E & F you can also do (in the sitemap.xmap of cocoon)

   
   
   


the wildcard will fill the {1}. When you call
http://localhost/~user/hello-page.xml

{1} will contain ~user/hello-page.xml

Cocoon will for example load: C:\tomcat4\webapps\ROOT\~user\hello-page.xml
If you add a tranformation each xml matching the wildcard will be
transformed...

ps. to change the port goto server.xml of tomcat and search for
org.apache.catalina.connector.http.HttpConnector. Change port 8080 to 80.

-Oorspronkelijk bericht-
Van: Jens Nie [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 21:42
Aan: [EMAIL PROTECTED]
Onderwerp: Re: renewed Newbie Question


Am Montag, 27. Mai 2002 14:43 schrieb Graaf, Edgar de (fin):
> If I understand you correctly you want users to be able to place xml in
> cocoon that is processed by cocoon.
> Well:
> 1. Create a subdirectory in ../cocoon/
> 2. Mount that directory (in the sitemap.xmap of /cocoon/)
> 3. In that subdirectory you place a sitemap.xmap
> 4. Per user make a directory and give them access.
> 5. If you want them to be able to run xsp you add the following to the
> sitemap:
> 
>   
>   
>   
> 
>
Well at first thank you for that suggestion. But i think it does not exactly

match what i wan't to do using cocoon. See the following example:

http://localhost:8080/cocoon/samples/hello/hello-page.xml

gives me the simplest xml-to html transform possible. That's taken from the 
live samples section of cocoon, and is working pretty well.
As far as i understand the whole thing, this works because tomcat running at

localhost:8080 knows to run cocoon on this url as /cocoon/ is in the path
and 
it's an xml-document. What I wan't to have working is the same thing with
the 
following url:

http://localhost:8080/~user/cocoon/samples/hello/hello-page.xml

or even better

http://localhost/~user/hello-page.xml

that is really all that would be satisfying (at the moment of course)

Thanks for any help

jneines

-- 
Dipl.-Phys. Jens Nie
Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie

-
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]>

-
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]>




Re: renewed Newbie Question

2002-05-27 Thread John Austin

On Monday 27 May 2002 03:41 pm, you wrote:



> Well at first thank you for that suggestion. But i think it does not
> exactly match what i wan't to do using cocoon. See the following
> example:
>
> http://localhost:8080/cocoon/samples/hello/hello-page.xml

Umm ... could you put in a hostname that points to your site.
'localhost' is different for everybody.

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




Re: renewed Newbie Question

2002-05-27 Thread Jens Nie

Am Montag, 27. Mai 2002 14:43 schrieb Graaf, Edgar de (fin):
> If I understand you correctly you want users to be able to place xml in
> cocoon that is processed by cocoon.
> Well:
> 1. Create a subdirectory in ../cocoon/
> 2. Mount that directory (in the sitemap.xmap of /cocoon/)
> 3. In that subdirectory you place a sitemap.xmap
> 4. Per user make a directory and give them access.
> 5. If you want them to be able to run xsp you add the following to the
> sitemap:
> 
>   
>   
>   
> 
>
Well at first thank you for that suggestion. But i think it does not exactly 
match what i wan't to do using cocoon. See the following example:

http://localhost:8080/cocoon/samples/hello/hello-page.xml

gives me the simplest xml-to html transform possible. That's taken from the 
live samples section of cocoon, and is working pretty well.
As far as i understand the whole thing, this works because tomcat running at 
localhost:8080 knows to run cocoon on this url as /cocoon/ is in the path and 
it's an xml-document. What I wan't to have working is the same thing with the 
following url:

http://localhost:8080/~user/cocoon/samples/hello/hello-page.xml

or even better

http://localhost/~user/hello-page.xml

that is really all that would be satisfying (at the moment of course)

Thanks for any help

jneines

-- 
Dipl.-Phys. Jens Nie
Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie

-
Please check that your question has not already been answered in the
FAQ before posting. 

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




RE: renewed Newbie Question

2002-05-27 Thread Graaf, Edgar de (fin)

If I understand you correctly you want users to be able to place xml in
cocoon that is processed by cocoon.
Well:
1. Create a subdirectory in ../cocoon/
2. Mount that directory (in the sitemap.xmap of /cocoon/)
3. In that subdirectory you place a sitemap.xmap
4. Per user make a directory and give them access.
5. If you want them to be able to run xsp you add the following to the
sitemap:

  
  
  


-Oorspronkelijk bericht-
Van: Jens Nie [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 27 mei 2002 13:34
Aan: [EMAIL PROTECTED]
Onderwerp: renewed Newbie Question


Hi cocooners,

i just asked that question a couple of days before, but did not receive any 
response to it. And i suppose it's simple for you gurus. So i'm about to try

again.

I have installed the jakarta-tomcat and cocoon packages shipped with the 
Suse-8.0 LinuX-Distribution. The examples work fine. 

The question is: what changes do i have to make to apache/tomcat/cocoon 
configuration to make cocoon processing work in user homepages?

Any sugestions? 

Sincerly
jneines


-- 
  Dipl. Phys. Jens Nie
 Fachbereich Physik, Universität Osnabrück
[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie



-
Please check that your question has not already been answered in the
FAQ before posting. 

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. 

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




RE: renewed Newbie Question

2002-05-27 Thread TREGAN Fabien

>But what do i have to do, if i would 
like to dynamical transform XML to XHTML in a userhompage?
>Say be trying to access http://myserver/~user/hello-page.xml?

All you have to do is tell tomcat (or whatever servlet container you use)
send (or redirect), http://myserver/~* to your cocoon app. Though this is
not a Cocoon related question, it is in the FAQ (go to
http://localhost:8080/cocoon, click on "documentation", then "FAQ" and read
them.

>-Message d'origine-
>De: Jens Nie [mailto:[EMAIL PROTECTED]]
>Date: lundi 27 mai 2002 13:34
>À: [EMAIL PROTECTED]
>Objet: renewed Newbie Question
>
>
>Hi cocooners,
>
>i just asked that question a couple of days before, but did 
>not receive any 
>response to it. And i suppose it's simple for you gurus. So 
>i'm about to try 
>again.
>
>I have installed the jakarta-tomcat and cocoon packages 
>shipped with the 
>Suse-8.0 LinuX-Distribution. The examples work fine. 
>
>The question is: what changes do i have to make to 
>apache/tomcat/cocoon 
>configuration to make cocoon processing work in user homepages?
>
>Any sugestions? 
>
>   Sincerly
>   jneines
>
>
>-- 
>  Dipl. Phys. Jens Nie
> Fachbereich Physik, Universität Osnabrück
>[EMAIL PROTECTED], http://godot.physik.uni-osnabrueck.de/~jnie
>
>
>
>-
>Please check that your question has not already been answered in the
>FAQ before posting. 
>
>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. 

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