Re: Servlet generator, help needed

2001-07-19 Thread Giacomo Pati

Quoting Jean-Marc Borer [EMAIL PROTECTED]:

 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.

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: [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: Servlet generator, help needed

2001-07-19 Thread Sergio Carvalho

On Thu, 19 Jul 2001 17:21:52 +0200 (CEST), Giacomo Pati [EMAIL PROTECTED] wrote:
--
 Quoting Jean-Marc Borer [EMAIL PROTECTED]:
 
  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: [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]
 



--
Sergio Carvalho
---
[EMAIL PROTECTED]

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Servlet generator, help needed

2001-07-19 Thread Jean-Marc Borer



Sergio Carvalho wrote:
 
 On Thu, 19 Jul 2001 17:21:52 +0200 (CEST), Giacomo Pati [EMAIL PROTECTED] wrote:
 --
  Quoting Jean-Marc Borer [EMAIL PROTECTED]:
 
   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 absolutely agree. You not only benefit from caching, converting,
multiple output and sitemap, but you can also mix static (XML pages) and
dynamic content (application/servlet output) and maange their rendition
through Cocoon. That why I wanted to know if anyone ever tried to use
the Cocoon that way. 

 
 I don't know if there is a Servlet Generator, but that's another totally
 different story.

In fact, yes there is a ServletGenerator class, but it is not documented
at all... Anyone tried to use it?

 
  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: [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]
 
 
 --
 Sergio Carvalho
 ---
 [EMAIL PROTECTED]
 
 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: [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: Servlet generator, help needed

2001-07-19 Thread Davanum Srinivas

Sergio,

Just use the URLGenerator to read the XML stream via a URL and feed it to Cocoon2.

Thanks,
dims

--- Sergio Carvalho [EMAIL PROTECTED] wrote:
 On Thu, 19 Jul 2001 17:21:52 +0200 (CEST), Giacomo Pati [EMAIL PROTECTED] wrote:
 --
  Quoting Jean-Marc Borer [EMAIL PROTECTED]:
  
   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: [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]
  
 
 
 
 --
 Sergio Carvalho
 ---
 [EMAIL PROTECTED]
 
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


=
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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]




Re: Servlet generator, help needed

2001-07-19 Thread Sergio Carvalho


Thanks dims. It was not me asking, but Jean-Marc Borer. I was just surprised 
at how strongly Giacomo discouraged using Cocoon as a presentation engine. 
I use Cocoon that way with Jsp pages. Its a great way to convert legacy apps, 
decoupling presentation.

On the other hand, I didn't know about URLGenerator. Living and learning.

On Thu, 19 Jul 2001 09:24:30 -0700 (PDT), Davanum Srinivas [EMAIL PROTECTED] wrote:
--
 Sergio,
 
 Just use the URLGenerator to read the XML stream via a URL and feed it to Cocoon2.
 
 Thanks,
 dims
 

--
Sergio Carvalho
---
[EMAIL PROTECTED]

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Servlet generator, help needed

2001-07-19 Thread giacomo

On Thu, 19 Jul 2001, Sergio Carvalho wrote:


 Thanks dims. It was not me asking, but Jean-Marc Borer. I was just surprised
 at how strongly Giacomo discouraged using Cocoon as a presentation engine.
 I use Cocoon that way with Jsp pages. Its a great way to convert legacy apps,
 decoupling presentation.

Because experience of other projects (jetspeed) using cocoon the other
way around as a template/rendering engine failed because of the
complexity. The right approach to use cocoon is to have it run as it
is and put your logic into components available for use (Actions,
Generators or Transformer) or use custom ones like Jsp-/URLGenerator.

Giacomo


 On the other hand, I didn't know about URLGenerator. Living and learning.

 On Thu, 19 Jul 2001 09:24:30 -0700 (PDT), Davanum Srinivas [EMAIL PROTECTED] wrote:
 --
  Sergio,
 
  Just use the URLGenerator to read the XML stream via a URL and feed it to Cocoon2.
 
  Thanks,
  dims
 

 --
 Sergio Carvalho
 ---
 [EMAIL PROTECTED]

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