cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Carvalho <sergio.carva...@acm.org>
Subject Re: Servlet generator, help needed
Date Thu, 19 Jul 2001 16:14:28 GMT
On Thu, 19 Jul 2001 17:21:52 +0200 (CEST), Giacomo Pati <giacomo@apache.org> wrote:
--
> Quoting Jean-Marc Borer <jean-marc.borer@infodesign.com>:
> 
> > Hello guys,
> > 
> > I am new to Cocoon, but not to web application development and XML. We
> > are currently evaluating Cocoon to see if it fits out needs. We develop
> > web applications based on servlets. In a MVC (model view controller)
> > model, we expect to use servlets as controllers, Cocoon for the view and
> > we have our own database layer for the model. Our servlets are
> > responsible to produce the XML (from information extracted of the
> > database) and tranmit it to the Cocoon pipeline for the rendition.
> > However our static pages will be written in XML and processed by Cocoon
> > in the usual way.
> > What is the best way to implement this? Subclass the ServletGenerator
> > class and build our owns?
> 
> No, Cocoon was not build to be used that way. Best is you rewrite your servlet 
> as Actions and put it at the begining of your pipeline definitions in the 
> sitemap.

Why not? Why can't the servlets be used as Generators, and feed cocoon like any
other generator? Cocoon can be used as a complete solution, but I see no valid reason
to avoid using (part of) it as a presentation layer. With aggregation and caching, 
it's probably the best software out there for the job.

I don't know if there is a Servlet Generator, but that's another totally 
different story.
> 
> Giacomo
> 
> > 
> > Thanks in advance for any help. Cheers,
> > 
> > 
> > Jean-Marc Borer
> > Solution center Engineer
> > InfoDesign Communications
> > 
> > ---------------------------------------------------------------------
> > 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: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> > 
> > 
> > 
> 
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 



--
Sergio Carvalho
---------------
sergio.carvalho@acm.org

If at first you don't succeed, skydiving is not for you

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message