You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Elvira Nieto Carretero <El...@isotrol.com> on 2005/05/08 21:12:03 UTC
Cocoon vs Struts
Hi all!
I have a web project with Java and Struts. This project is adapted for
PC's and PDA's web navigator. For this i have written a css file and
Struts' forward (JSP file) for each kind of navigator.
I`ve noticed about Cocoon is the best XML's Publisher and i want to
integrate it in my web project with Java+Struts. I analized the Cocoon
plugin for Struts and i've noticed it's very easy to integrate it but i
have a lot of doubts about the advantages i could get doing it because i
have to duplicate the XSLT files and CSS files again, for each device.
Best Regards
A kiss
--
Elvira Nieto Carretero
Consultora y Analista de Portales de Internet
-------------------------------------------------
Isotrol, S.A.
Edificio Innova
Avda. de la Innovación, 1, 3ª planta
41020 Seville (Spain)
Tfno: +34 955 036 800
Fax: +34 955 036 849
Email: Elvira.Nieto@isotrol.com
Re: Cocoon vs Struts
Posted by Joerg Heinicke <jo...@gmx.de>.
enieto <at> isotrol.com <Elvira.Nieto <at> isotrol.com> writes:
> >>Hi all!
> >>
> >>I have a web project with Java and Struts. This project is adapted for
> >>PC's and PDA's web navigator. For this i have written a css file and
> >>Struts' forward (JSP file) for each kind of navigator.
> >>
> >>I`ve noticed about Cocoon is the best XML's Publisher and i want to
> >>integrate it in my web project with Java+Struts. I analized the Cocoon
> >>plugin for Struts and i've noticed it's very easy to integrate it but i
> >>have a lot of doubts about the advantages i could get doing it because i
> >>have to duplicate the XSLT files and CSS files again, for each device.
> >>
> >So what is your question?
>
>
> My question is what's advantages and disadvantages i get integrating
> Cocoon in my web project Java+Struts? Is worth it the change?
I guess on the dev list nobody will answer these questions. The devs have to do
"more important" things :-) and will just redirect you to the documentation (the
infamous RTFM). It should be easier to raise some discussion on this discussion
on the users list though.
Joerg
RE: Cocoon vs Struts
Posted by trampus <tr...@univ.trieste.it>.
> My question is what's advantages and disadvantages i get integrating
> Cocoon in my web project Java+Struts? Is worth it the change?
Hi,
I don't use struts, anyway:
- both are MVC framework, so you can do almost the same task in Struts
and/or cocoon.
- Somebody claims Struts is betters than cocoon as a controller (but I don't
use Struts and I've seen Spring only once). Probably this is the reason
because a lot of people wants to integrate struts and cocoon.
- Cocoon is xml based and implements a controller.
- You can use xml in Struts applications.
...for this the choice could be a kind of philosophy.
Anyway, the reason because I use cocoon are:
- using xml from generators to serializers, you have not to integrate your
presentation layer with scripting (jsp, xsp, ...). Of course you can do that
but I prefer to have data, programming and presentation three distinct
steps. The only exception (really a border line) is XSLT but it's so simple
that designers and programmers can understand it and it's a good language to
interface that two kind of people (designers rarely know java or jsp well
enough to modify a page without crashing half of the application). Probably
a lot of persons use scripting in cocoon, that's right: it's another
philosophy.
- using cocoon you (should) not care about optimization: cocoon do it's best
to cache partial results and so on. I find caching is not so good, anyway.
But it's good enough for the 90% of the web applications you want to create.
- it's very easy to debug an application: using cocoon-views you can easily
check what xml data are processed in any step of a match section.
- if you find a problem is very easy to discover where the bug is, in the
generator or in one of the transformes, simply disabling (comment) single
parts of the generation process.
- For the completely independence of generators and transformes and xml as
interface between them, it's productive to assign the creation of different
part of the application to different people.
Again, you can do all of that with Struts (Spring, servlet, PHP, Basic,
.....) but within cocoon you already have what you need.
regards,
romano
Re: Cocoon vs Struts
Posted by Torsten Curdt <tc...@apache.org>.
> Hi Torsten,
>
> My question is what's advantages and disadvantages i get integrating
> Cocoon in my web project Java+Struts? Is worth it the change?
Elvira,
that's quite a general question for a developer
list ...and I bet we are a bit biased ;-)
Of course it will open you a whole new
world of components and xml processing
for your application.
Maybe you might even end up wondering
why you used Struts in the first place.
(Ups ...there we go ;-)
Anyway! I advise to just check out the
examples. It should be pretty easy to
just give it a go.
cheers
--
Torsten
Re: Cocoon vs Struts
Posted by "enieto@isotrol.com" <El...@isotrol.com>.
Torsten Curdt escribió:
>Elvira Nieto Carretero wrote:
>
>
>>Hi all!
>>
>>I have a web project with Java and Struts. This project is adapted for
>>PC's and PDA's web navigator. For this i have written a css file and
>>Struts' forward (JSP file) for each kind of navigator.
>>
>>I`ve noticed about Cocoon is the best XML's Publisher and i want to
>>integrate it in my web project with Java+Struts. I analized the Cocoon
>>plugin for Struts and i've noticed it's very easy to integrate it but i
>>have a lot of doubts about the advantages i could get doing it because i
>>have to duplicate the XSLT files and CSS files again, for each device.
>>
>>
>
>So what is your question?
>
>cheers
>--
>Torsten
>
>
Hi Torsten,
My question is what's advantages and disadvantages i get integrating
Cocoon in my web project Java+Struts? Is worth it the change?
Thanks
Kisses
--
Elvira Nieto Carretero
Consultora y Analista de Portales de Internet
Isotrol, S.A.
---------------------------------------------
Isotrol, S.A.
Edificio Innova
Avda. de la Innovacion, 1, 3ª planta
41020 SEVILLE (Spain)
Tel.: +34 955 036 800 Fax: +34 955 036 849
Correo-e: Elvira.Nieto@isotrol.com
Re: Cocoon vs Struts
Posted by Torsten Curdt <tc...@apache.org>.
Elvira Nieto Carretero wrote:
> Hi all!
>
> I have a web project with Java and Struts. This project is adapted for
> PC's and PDA's web navigator. For this i have written a css file and
> Struts' forward (JSP file) for each kind of navigator.
>
> I`ve noticed about Cocoon is the best XML's Publisher and i want to
> integrate it in my web project with Java+Struts. I analized the Cocoon
> plugin for Struts and i've noticed it's very easy to integrate it but i
> have a lot of doubts about the advantages i could get doing it because i
> have to duplicate the XSLT files and CSS files again, for each device.
So what is your question?
cheers
--
Torsten