I would please like to know from you guys out there, if anyone has used struts then moved over to using webwork. I would like to know if it is a
feasible option, and what the pro's and con's of each are.
I have read the FAQ on the comparison between struts and webwork, but i would like to hear from developers who have actually used webwork and struts.
Which seems to be the better option?

I was an avid Struts users for years before switching over to WebWork. I personally find WebWork a lot easier. Here are some of the things I think WebWork does better:


* To perform simple actions with Struts requires a _lot_ of coding from ActionForms to Actions to relatively large config entries. If you look through the archives, I posted a comparison of what it took to create code in each framework.

* Struts is strongly tied to the web layer making it inappropriate to directly place business logic there, WebWork isn't. I find with Struts, I end up using it as a wrapper layer around POJOs. Again, increasting the amount of code required.

* Struts has a larger, albeit more low level tag library. The WebWork tag library is smaller, and yet I feel like you can get things done quicker as the constructs are higher level.

* Finally, with Struts, the typically model is to use the ActionForm to receive input, the Action to wrap the business logic and response content gets placed into the request attributes. That seems pretty messy in comparison to having one disposable object to contain all these items.

All in all, I think WebWork has a definite edge over Struts. With the upcoming WebWork2, I think it's hands down in WebWorks favor. In addition to an even cleaner separation of business logic and presentation layer, WebWork2 also implements a highly customizable interception framework that enables aspect-oriented development.

In any event, I think it's worth a couple days to give it a try.

--
Matt Ho
Principal Indigo Egg, Inc.



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to