cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suplizio <supli...@blarg.net>
Subject Re: Tomcat + Cocoon (as only a renderer)
Date Wed, 13 Jul 2005 21:39:38 GMT
Thanks, this is exactly what I'm looking to do. Do you know of any
online sources that speak to this in greater detail?

On Wed, Jul 13, 2005 at 2:26pm Stefan Podkowinski <spodxx@gmail.com>
wrote:
> On 7/13/05, suplizio <suplizio@blarg.net> wrote:
> > You did understand my question correctly: I want my servlet/jsp
Tomcat web
> > app to "call" Cocoon to perform presentation layer rendering.=20
> [...]
> > First of all, is there another way to communicate with cocoon rather
than
> > going through the Cocoon servlet? In other words, it sounds as if I
can o=
> nly
> > use the http protocol to communicate with cocoon: the client request
first
> > travels through my servlet, which makes requests to cocoon servlet,
which
> > matches the URI pattern and does the appropriate processing, which
returns
> > the output back to my servlet who kindly renders it to the client.
If this
> > is correct, is there another way to do this? (I can do a
URL.getContent()=
>  or
> > something for testing but I don't know if my architects will approve
of
> > this).
> 
> You don't have to make another http connection to an external cocoon
> app from your application. Simply include cocoon in your base
> application and define a mapping for the cocoon servlet.
> 1) gather all required jar files from your cocoon build and copy them
> intro your WEB-INF/lib directory
> 2) include the cocoon servlet in your web.xml settings (also see
> cocoon build dir)
> 3) copy necessary *.xconf files to WEB-INF=20
> 
> After you're successfully configured cocoon to run as part of your
> application, you should be able to simply pass the request on to the
> cocoon servlet, which will share all request and session attributes:
>
ServletContext.getRequestDispatcher("/cocoon/tabreport").forward(request,
> response)
> 
> If you have a Struts based application also concider the struts cocoon
plug=
> in:
> http://struts.sourceforge.net/struts-cocoon/
> 
> HTH
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


Mime
View raw message