cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Konovalov <oleg...@yahoo.com>
Subject Re: Getting Cocoon Session from outside
Date Thu, 21 Sep 2006 12:09:04 GMT
Jason,

>It's all one "project", with a single web.xml file for the two servlets.So you are saying
they have to be merged into one web application.
Is there a way to keep them in 2 separate directories on the same level (e.g. /deploy/app1
 &  /deploy/app2)
so I can build them separately with ant, keep them separately in CVS, etc ?
I would like to avoid merging them completely...
 
Thank you,
Oleg.

----- Original Message ----
From: Jason Johnston <cocoon@lojjic.net>
To: users@cocoon.apache.org
Sent: Wednesday, September 20, 2006 6:27:12 PM
Subject: Re: Getting Cocoon Session from outside

Oleg Konovalov wrote:
> Jason,
> 
> Is that two or one Web Project(s) ?
> 
> Looking at the servlet-mapping's url-pattern:
> 
> <servlet-mapping>
>    <servlet-name>SpringMVC</servlet-name>
>    <url-pattern>/spring/*</url-pattern>
> </servlet-mapping>
> 
> <servlet-mapping>
>    <servlet-name>Cocoon</servlet-name>
>    <url-pattern>/*</url-pattern>
> </servlet-mapping>
> 
> Looks like you put the SpringMVC project inside the Coocoon web project 
> [<cocoon-app>/spring].
> Or can they still be 2 separate web projects (with root on the same 
> level, like /cocoon-app &  /spring-app) ?
> 
> But AFAIK each web project must have it's own /WEB-INF/web.xml. Is that 
> not correct ?


Both servlets are configured within the same servlet context, so they 
would result in URLs like:

http://localhost:8080/mycontext/spring/mySpringForm.form
http://localhost:8080/mycontext/cocoon-transformed-document.xml

The mappings are just saying that any path within the servlet context 
that starts with /spring/ will use the Spring servlet, and anything else 
will use the Cocoon servlet.  It's all one "project", with a single 
web.xml file for the two servlets.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org






Mime
View raw message