Slashdot Mirror


Manning's Struts in Action

cpfeifer writes "Building browser-based java applications has involved a mixed bag of server side technologies (servlets, JSPs), client side technologies (HTML, Javascript) and frameworks (webmacro, Struts, Taglibs, Velocity). As these technologies appeared and matured, "The Right Way" (tm) to build web applications evolved to be an application of the classic model-view-controller pattern." Below is Craig's review of Struts in Action, a book which attempts to illustrate a successful path to making sure that web applications are designed the right way. Struts in Action author Husted, Dumoulin, Franciscus, Winterfeldt pages 630 publisher Manning rating (11/10) it goes to 11 reviewer Craig Pfeifer ISBN 1930110502 summary More than just a book about how to use the Struts framework, covers the best practices of web application design and development. If you are building a java web application of any appreciable size, YOU NEED THIS BOOK.

What's Needed So it is generally acknowledged that using the MVC pattern is the proper way to build web applications, but with the large number of technologies and frameworks it can be a long road to figure what is the best solution for your application. What we need is a book that covers the best practices of web application design and development from both a technology/architecture perspective, and is written by a few folks who have deep understanding of the underlying problems of building robust web applications.

That's what I love the most about this book, it doesn't just talk about how to configure and develop with Struts. It's a web application manifesto. Anyone can write a book about how to use Struts to build a web application. That's not the point. This book is ~8 people-years worth of first-hend developer knowledge (4 authors x ~2 years of working on the Struts project) condensed down into 630 pages. It doesn't just teach you how to use Struts (and Velocity and Taglibs and Tiles), but why you should use them. That's the most important thing this book has to offer. If your project is looking at using Struts & other Jakarta technologies, you need this book. If your project is currently using Struts & other Jakarta technologies, you need this book.

What's Bad?

The Velocity coverage is pretty light. If you are more comfortable building logic with a quasi-shell script language instead of using markup tags, then you should look to the project's documentation for further reference before embarking on a prototype. The Jakarta Lucene project, is touched on in the sample application they build, but are left as an exercise for the reader to investigate. While it's good to bring in related technologies to flesh out your sample apps, you have to be careful not to get sidetracked from the primary topic. You could easily write several books about the other components developed by the Jakarta project.

What's Good?

The best part is that the 4 authors are all Struts authorities (one Jakarta project manager, 2 Struts committers, one principal consultant), so they know Struts and the other Jakarta web frameworks inside and out. More than that, these guys have been solving the problems involved with web applications for several years now. They have deep experience in the patterns and best practices of building robust and flexible web applications, and this book passes on their experiences to the reader.

So What's In It For Me?

With this book and a little bit of effort on your part, you will be a competent Java web application developer. With a little bit more effort, you will become a Java web application architect. It's worth the extra effort. This is a tremendous book that will set the standard for web application references and will continue to be useful for years to come. It reminds me of the first Manning book I read, Neward's Server-Based Java Programming in terms of it's scope. approach and usefulness.

You can purchase Struts in Action from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

30 of 163 comments (clear)

  1. Who still uses structs? Tapestry the way to go :) by cjustus · · Score: 3, Informative
    Am I one of the first to follow up? Sweet

    People considering using structs might want to take a look (as you always should) at alternate technologies... The one I might suggest would be Tapestry with IDE integration with Eclipse through Spindle.

  2. MVC to all who say "I just write..." by MosesJones · · Score: 5, Insightful


    MVC is about design, its about knowing that your application will be maintained by other people. Its about seperating the various elements so multiple people can work on your project. Its about ensuring that elements are re-used effectively so testing effort is used more effectively.

    MVC is about projects that work well. So to all those people who just "hack it together on my own", please remember that there are some people out there who do this for a living on sites and system that will still be maintained in 5, 10, 15 years or even longer. That is why you choose MVC, because you realise that Go-Live is only a small part of TCO.

    MVC is great, and MDA is even better because it uses similar patterns at an even higher level.

    Design is good, design works, patterns work. Just because you can "write 1,000 lines in a day" doesn't mean that in 6 months time even YOU will be able to maintain it. Don't knock it until you've been on a project with 10 people where they all thought they could do it their own way.

    Be an engineer, not a script kiddie.

    --
    An Eye for an Eye will make the whole world blind - Gandhi
    1. Re:MVC to all who say "I just write..." by FortKnox · · Score: 3, Interesting

      I completely and totally agree!

      I'm sick of children that say "Hell, I coulda done that in like a week, not 3 months!" This is the difference between coding all hours of the night and true professional development.

      This is, unfortunately, an issue with several open source projects. Someone just starts slapping code together, and more and more people jump in and have coding binges over the weekend. What do you end up with? A bowl of spaghetti code that only the original writers can understand.

      If major design was implemented from the start, a lot of open source projects would be easier to help out (I hate to say this, cause it will sound like a troll, but slashcode really needs rewritten from scratch with a better design than what it currently has. Honestly, if it was well written, I think a lot more people would be willing to pitch in and help out.)

      --
      Good quote, too many chars. Seriously, the slashdot 120 char limit sucks!
    2. Re:MVC to all who say "I just write..." by axxackall · · Score: 4, Interesting
      This is, unfortunately, an issue with several open source projects.

      You may mean PHP, I guess? I agrre, it's complete mess of spaghetti.

      But in a defence of open source project (especially based on something else than on proprietary java) I would address you to Zope. You'll find a very good technology design without all that EJBish overbloating.

      When you run Zope, please check you memory. Compare it to what you have with Struts/JBoss on an equal load and equal functions (and equal dev time). In my case the difference was 10 MB vs 100 MB for a mid size applications.

      After that compare you code just to enjoy that your application code in Zope is even more readable and better mainanable than in Struts.

      I began to hate EJB specifically and Java generally when I've been introduced to Zope and Python.

      --

      Less is more !
    3. Re:MVC to all who say "I just write..." by drewmca · · Score: 3, Insightful

      I agree strongly. I think that people fail to realize, from management on down to the trenches, that the real cost of software development is in maintenance. If you write a really nice subtle piece of code that saves processor cycles but is hard to understand, any performance gain (or points you give yourself for programming skill) will be completely offset by the time spent by other developers or you trying to figure out how it works a month or a year down the line. Very little code goes through its lifetime unaltered; things get added, removed, extended, etc., all the time because of business pressures. The harder this is to do, the higher the cost. A perfect example of this is in variable naming. So many people I've worked with continue to use cryptic variable names like "chks". Wake up people! We no longer need to deal with the limitations of computers from 10 years ago! We can actually use long variable names without a performace hit! Isn't it about time our programming style changed to reflect that? Wouldn't it be easier to have a variable named "checks" so that other people could understand what was going on in the code? Or so they wouldn't confuse it with another variable "checksum", for example? Of course, there's a fine line where too much design slows things down. You can't overengineer. I like a lot of what the XP people say about this, especially with the one-two punch of strict unit testing and refactoring.

    4. Re:MVC to all who say "I just write..." by Pengo · · Score: 3, Interesting


      I have found that I have made the Python round-trip.

      I haven't used Zope, but for general programming..I have found my programs to build up quicker using python.. but , even when push comes to shove.. my java apps are more maintainable. Agreed that JAVA is a bit of a pig, but it's a VERY structured language. Having soft-types in Python seems to be what kills me in the long run, my programs tend to be more 'brittle'.

      Also, using tools like ANT and now my new golden-child of IDE's , Eclipse.. I find JAVA wasn't as bad as I thought..

      I can also use Jython anywher ein my java apps if desired.

  3. The thing about MVC by dmorin · · Score: 4, Insightful
    This is probably off topic, but I just got off the phone with somebody talking about MVC. In my experience thus far, MVC often falls victim to "Yeah, it's a good pattern in theory, but in implementation it's going to make my life harder by forcing me to separate things that I don't technically have to separate." When people create their own stuff from scratch I think that they often get close to MVC but don't fully realize it. We had this problem with Struts in our platform. We have a homegrown forms library on top of a proprietary app server. When the time came to rewrite it in open source we started by looking at Struts and decided that Struts added too much complexity, that we could port what we had more directly and get running faster. Of course, after doing that, we all knew that Struts was where we wanted to be long term so we started designing a plan for getting it in there.

    Random MVC joke. Saw a cartoon in a Java mag once where a project manager is saying to his engineers, "For this part of the user interface we can either go with a Swing applet, or ActiveX control." Engineers all chant "Swing!Swing!Swing!" Project manager says, "If we go with Swing, it will require substantial work with JTree." Engineers all chant "ActiveX! ActiveX! ActiveX!"

    :) Duane

  4. Why use struts? Just do it yourself. by zaqattack911 · · Score: 3, Interesting

    Everytime I go back and consider using struts.. I keep realizing I already use the MVC. Struts too me seems like extra bloat.

    Basically I have a master url such as: http://mywebsite/servlet/IndexServlet (lets just say).

    The master servlet always takes in an "f" parameter to determine state. f=login , f=mainmenu, f=saveform, etc...

    It uses that f parameter to pull out the proper "Action Object" (or control) from a stored hashtable that is initialized once. Then it executes that ActionObject (or whatever you choose to call it) which handles the other parameters (other than f), does what it needs to, and pushes out the proper JSP "view" of your choosing.

    This could be simply displaying a form, saving a form to database and displaying a success page, yadda yadda yadda. Of course some actions can be used for more than one thing if you code smartly.
    I have saved eons of time doing this this way, making my "ActionObjects" as reusable as possible.

    All along security is maintained via sessions.

    It's easy, and you don't need third party libs to do it.

    Commentary and questions are welcome of course. I expect half of you have come up with some flaws :)

    --Zuchini

    1. Re:Why use struts? Just do it yourself. by billtom · · Score: 3, Interesting

      There isn't any particular flaw, but there are two other points to consider.

      First, what you've described is only about one quarter of what struts does. A very important quarter, of course; the core of a common web application pattern. As to all the other stuff that struts does, there doesn't seem much point in listing it here. Check the site.

      Second, look at what you're saying. You're saying, "I can write code that does what struts does". Sure, by why write code when a good third party library is already there. I could summarize the code required for a simple web server in a few paragraphs, but that doesn't mean that it's a good idea to write one for every new project.

    2. Re:Why use struts? Just do it yourself. by Bazzargh · · Score: 4, Informative

      You're right that simple MVC webapps are easy, but the easiest approach is actually the one described in this article by Govind Seshadri.

      What your approach misses that you get from Struts:
      - validation of form submissions (to java types, regexps, whatever)
      - automatic population of form beans, which leads to...
      - automagic prepopulation of forms from beans used earlier in the session (with struts custom tags)
      - tool support for designing complex sites (there are lots of GUIs for struts these days)
      - you don't need to write or maintain any of the framework :)

      Every framework brings with it some constraints in how you work, but pays off in spades if you use all the features. Struts is no exception. If all you're doing is the stuff you describe, Govind's article might improve your life a little. If you build complex sites, Struts will simplify your life a lot.

      Just a quick concrete example: in struts, the equivalent of the IndexServlet you describe is the DispatchAction. You'd configure like so:

      Then you can write:
      package funky;
      class IndexAction extends org.apache.struts.actions.DispatchAction {
      public ActionForward login(...);
      public ActionForward mainmenu(...);
      public ActionForward saveform(...);
      public ActionForward etc(...);
      } ...and the methods are automatically called depending on the value of 'f'. Like you said, "Of course some actions can be used for more than one thing if you code smartly.", and in this case the smartly was done for you ;)

      -Baz

    3. Re:Why use struts? Just do it yourself. by Bazzargh · · Score: 3, Informative

      Sorry the config bit got chopped out - I wroute:

      <action path="/indexAction" type="funky.IndexAction" name="indexForm" scope="request" input="/index.jsp" parameter="f">

  5. Struts by FortKnox · · Score: 5, Interesting

    FYI - Struts is quickly becoming the framework of choice for all J2EE coding houses. Having struts experience is a huge plus on your resume. The other Java tech to watch out for is portals (ie - jakarta's portal engine, or WebSphere's portal engine).
    I digress, but I've used struts and the MVC pattern plenty at my job, and it just makes life so easy when adding in new functionality, fixing bugs quickly, and overall maintainability.

    Those that say "its good in theory, not in practice" haven't used it correctly in practice.

    --
    Good quote, too many chars. Seriously, the slashdot 120 char limit sucks!
    1. Re:Struts by rfsayre · · Score: 4, Interesting

      It's also becoming part of the J2EE spec in a slightly altered but hopefully interoperable form.

      Sun is calling it JavaServer Faces. Principal Struts developer Craig McClanahan is on the committee.

  6. Can we have a consensus here? by Twister002 · · Score: 4, Interesting

    IS MVC really the best way to build web applications? It seems to me that for 95% of the web sites in operation, by the time you finish building the MVC app in Java using Struts you could have coded it 3 times in PHP or Perl?

    Does Slashdot use an MVC pattern? MSN? Yahoo?

    --
    "For a successful technology, honesty must take precedence over public relations for nature cannot be fooled." -Feynman
    1. Re:Can we have a consensus here? by eddy+the+lip · · Score: 3, Interesting

      You can implement MVC in any language. I've built one using PHP that has made development of complex web apps many times faster and easier to maintain than some random collection of pages with SQL embedded all throughout them. One page takes the request, makes the appropriate calls for whatever action is being taken (just a collection of included files, really), and they rely on a series of objects to do the actual heavy lifting - manipulate data, interact with the database, etc. Designers can change the look of the site without ever touching a line of PHP, coders can change the way the backend works without ever seeing any HTML. And once the framework is in place, you never need to worry about it again.

      For a simple one-off mailing form or some such, there's no point in the more complex architecture. But if you need to perform many different operations, aren't sure what the client's going to ask for next, and want to be able to change how things look or work without poring through miles of unrelated cruft, it's a godsend.

      To a large extent MVC is about injecting a big load of discipline into your work so you only need to worry about the relevant portion of your app instead of the whole spaghetti mess of it. In the short term, you can probably pull something together "that works" faster just by sitting down and coding, but the long term benefits more than make up for it.

      --

      This is the voice of World Control. I bring you Peace.

  7. Manning Press by Frums · · Score: 4, Informative

    I have this book, and JSTL In Action and both of them are truly excellent books. The 11/10 rating is quite appropriate. I have been attempting to convince myself to buy the Manning Ant book as well - just for the documentation on all of the Ant extensions that it includes.

    Additinally, Manning Press has experimented with releasing PDF versions of books (in read only if you use acroread or windows, but not otherwise) and this was how I first met their books. (The books were hosted over at The Server Side). Anyway, this was my first intro to Manning Press. I now look over their books before any other.

    The think I like most about Manning books is that they are written for smart people who have clues. Many tech books feel the need to explain basic concepts of programming in every single one, Manning doesn't bother - they stick to the topic on hand, they write as if the audience has a clue, is intelligent, and has real work to get done.

  8. Struts and MVC by giel · · Score: 5, Insightful

    IMHO using Struts (and web applications in general) you cannot build true MVC based applications.

    The MVC model defines more communication options and knowledge between objects that Struts is able to provide. MVC is event driven, a Struts application is driven by actions (post or get).
    The Structs framework, as I understand it, in general works like this:
    - A http request is sent to some dispatch. This dispatch converts the request into an 'action'.
    - The action is executed and returns a new request, either for a JSP or some other Template to be rendered or a new action.

    Using MVC a view contains components that have corresponding controllers. The view is usually a predefined API to a collection of widgets (like AWT, Swing, etc.). The controller is built of events bound to the widgets.
    Struts calls the jsp's the view, the actions the controller and the back-end or business logic you define the model.

    However MVC allows the model to interact with the view, and there is no way you can be sure you will be able to do so with a web page, because HTTP only supports polling and not pushing if you want to keep things browser independant.
    Well that's why I would not dare to say Struts implements MVC for web applications, but I must admit it provides a very nice framework.

    --
    giel.y contains 2 shift/reduce conflicts
    1. Re:Struts and MVC by revscat · · Score: 3, Interesting

      The MVC model defines more communication options and knowledge between objects that Struts is able to provide. MVC is event driven, a Struts application is driven by actions (post or get).

      By your definition, then, MVC is impossible to achieve over HTTP. You go on to say:

      However MVC allows the model to interact with the view, and there is no way you can be sure you will be able to do so with a web page, because HTTP only supports polling and not pushing if you want to keep things browser independant.

      First off I'm not sure you're comparing apples to apples here. MVC in the desktop sense has both different connotations and expectations than MVC in the web sense. Using simple session management (either through cookies or URL rewriting) you can have a de facto state-ful application over HTTP wherein the view is affected by the model.

      You seem to be maintaining a rather purist definition of "MVC."

  9. Struts and O'Reilly by pcraven · · Score: 4, Informative

    I really like the O'Reilly book that just came out. Most of the chapters of this book went through public review, if I remember correctly. The book is very solid.

    The real advantage of struts for me comes from its ability to handle forms. Regular expression checking of input is a great way to make sure you don't take in bad data. Not having to write this code, and code to handle and repost the page when errors occur, takes away a lot of the tedium of development.

    What I don't like about struts is all the abstractions. New developers should start with the basics and work up. But no one has the time for that. So figuring out what is going on under the covers is hard to do. The O'Reilly book is pretty good at trying to explain some of this stuff. But there's no substitute for actually doing it.

    And is it just me, or has 'real' coding started to go away? I spend half my time messing with xml config files anymore. I get more done, but it isn't as much fun.

  10. If you _want_ to do it youself that is... by jaaron · · Score: 4, Insightful

    I don't think anyone will claim you have to use third party applications to create an MVC-based web app. In fact, if you look at the core of Struts, it's rather simple (which IMHO is what makes it so nice). Any decent java developer could write something similiar and many have.

    I think the point is, why go it alone? When you can have hundreds of developers all working on and testing the same framework you end up with a lot more features and much more stable code. Sure I could write my own controler servlet (which is what Struts mostly is), but personally, I don't really want to have to write up the validation scheme, the internationalization features, the tag libs that make it easier to work with, and so on. With Struts, it's all there to begin with and it works. Additionally, when I hand over a Struts project to another developer or team, I can just say, "Oh, it's Struts based" and immediately they have access to host of documentation and an entire user community for support. I don't have to sit down and teach them how my special MVC magic works.

    I could go on, but I really find using a popular stable project like Struts has a lot of advantages. And yes, Struts is not perfect. There are lot of other good frameworks out there. It just so happens that Struts is very close to how I and my coworkers developed web apps to begin with, so the convertion factor was minimal and the gain was incredible.

    --
    Who said Freedom was Fair?
  11. "Just write it yourself" and "Perl! Perl! Perl!" by thelexx · · Score: 3, Informative

    WTFever people. From the Velocity (which I prefer to Struts) site:

    Velocity is a Java-based template engine. It permits anyone to use the simple yet powerful template language to reference objects defined in Java code.

    When Velocity is used for web development, Web designers can work in parallel with Java programmers to develop web sites according to the Model-View-Controller (MVC) model, meaning that web page designers can focus solely on creating a site that looks good, and programmers can focus solely on writing top-notch code. Velocity separates Java code from the web pages, making the web site more maintainable over the long run and providing a viable alternative to Java Server Pages (JSPs) or PHP.

    Velocity's capabilities reach well beyond the realm of web sites; for example, it can generate SQL and PostScript and XML (see Anakia for more information on XML transformations) from templates. It can be used either as a standalone utility for generating source code and reports, or as an integrated component of other systems. Velocity also provides template services for the Turbine web application framework. Velocity+Turbine provides a template service that allows web applications to be developed according to a true MVC model.

    ---------------------

    Velocity is dead simple to use, as it is not some kind of entire 'framework' that wants to manage your DB connections, life, etc. It makes using JSP look like masochism. If you really feel like recreating the wheel though, and are convinced that you know better, etc. then feel free to waste your time. I pity the fool who has to maintain your cruft though.

    (Would like to be posting more thoroughly on this, but it ain't happening this morning...)

    --
    "Gold still represents the ultimate form of payment in the world." - Alan Greenspan, 1999
  12. Re:Who still uses structs? Tapestry the way to go by Mindbridge · · Score: 3, Informative
    I have to disagree completely.

    If you come from a Swing background, Tapestry is way more intuitive than Struts. You have components in both, and building your gui involves putting components in components, and finally into a frame (Swing) or a page (Tapestry). You don't have to care about how the JTable (Swing) or Table (Tapestry) components are implemented, you just follow the API and use them. I really don't see the similarity between this and JSP or Struts.

    I think Tapestry is the only free Java framework out there that actually allows you to really build components rather than pages (as it is in most of the rest). You can build a component to edit the user preferences, for example, and it really does not matter which page or another component you put it in, how you put it in, and what the layout is. It IS Swing for the web.

    It also has a lot of other things that are worth using, but for those check the Tapestry home page.

  13. Re:"Just write it yourself" and "Perl! Perl! Perl! by Vaulter · · Score: 3, Informative


    You obviously don't know what struts is.

    Struts is a set of server side components for implementing the MVC pattern, that come with some JSP tag libs as a convenience.

    Struts can be used with Velocity. Velocity can only replace JSP, not struts.

    FWIW, I love velocity as well. I use it in stand alone applications as well as web applications.

    --
    I don't have a sig...Do you??
  14. What about the bigger picture? by smagoun · · Score: 3, Insightful
    Structs is cool, but it's just a small piece of a much bigger picture. There are many cases where a simple 1- or 2-tier app is perfectly adequate, and basing your app on Struts is appropriate for that. Those are rightly called "web applications."

    If you're building an enterprise app, however, basing your app on Struts (or any other "web application" technology) isn't a good idea. Why? You wind up mixing your app's functionality with its implementation. Using an MVC framework like Struts alleviates this problem to a great deal, but when it comes down to it you still have a big pile of servlets that does everything from database access to presentation.

    That approach isn't scalable, it's not adaptable to different technologies (there's a new webapp framework every week, it seems), it's not easy to integrate with other applications, and so on.

    What's really needed is a way to define an application independently of the implementation details. Once you've defined the application, you can generate whatever interfaces it needs - like a Struts UI, an EJB persistence engine, etc. This is where my shameless plug begins: check out the Sandboss project for a way to define your enterprise app without being chained to a particular implementation detail like Struts or EJB.

    While the techniques used in Sandboss are designed for the enterprise world, they're useful for web apps, too. I think it makes much more sense to over-engineer an application than it does to under-engineer it; overengineering takes more time up front but saves you 10x as much or more once development starts, since the well-don overengineered solution is more flexible and capable of responding to marketing's feature of the week. By picking Sandboss you get the best of both worlds - a robust framework where someone else has already done the engineering. You just define your app, and bam! Persistence, communication, control, the UI are all done for you.</shameless plug>

    1. Re:What about the bigger picture? by jaaron · · Score: 4, Interesting

      you still have a big pile of servlets that does everything from database access to presentation.

      If you end up with a big pile of servlets like this then you aren't using the framework properly. No framework is going to save stupid developers with a bad design. It can try to save them from themselves, but ultimately, the developers have to have a clue about how to code and how to properly design an application.

      --
      Who said Freedom was Fair?
  15. Some relevant links by Paul+Bain · · Score: 3, Informative

    Struts is but one presentation framework. A discussion comparing Struts and other frameworks is informative, and, indeed, there is an entire website devoted to such a comparison. For Struts links, try the home page of Ted Husted, the lead Struts developer.

    --

    A lawyer & digital forensics examiner. Also an expert on open source software (OSS).
  16. This is actually a valid question by jaaron · · Score: 4, Insightful

    It seems to me that for 95% of the web sites in operation, by the time you finish building the MVC app in Java using Struts you could have coded it 3 times in PHP or Perl?

    This comes up from time to time and I think it's a good question. There was an good discussion about this on the jakarta-general mailing list. It's a long thread, but if you'd like you can start reading at this point. The best part of it I think is this response by Jon Scott Stevens:

    Java is not the fastest technology to develop in, however, it produces the best code for the long term.

    PHP is the fastest technology to develop in, however, it produces the crappiest code for the long term.

    I develop Scarab in Java because it is going to live far longer than I do and needs a solid base to work from.

    I develop my bar's website in PHP because I just needed to get the job done quickly and was not concerned with code quality.



    Remember, PHP originally stood for Personal Homepage Parser. Java's web application technology was designed from the start to be a solution for a large "enterprise" class web site. You can do more with Java but you definitely take a hit in initial development time. Personally I feel that in the end, Java is easier to maintain and extend (but you may disagree).

    By the way, Yahoo! didn't go with Java because of the Java threads implementation on FreeBSD. It didn't have anything to do with the merits of the java language. (See Why not JSP, Servlets, or J2EE?)

    --
    Who said Freedom was Fair?
  17. Re:Who still uses structs? Tapestry the way to go by jaaron · · Score: 3, Interesting

    Velocity is still very much alive. Watch the mailing lists for a while if you want to see what's going on.

    --
    Who said Freedom was Fair?
  18. Re:Struts vs WebObjects by kwerle · · Score: 3, Informative

    We did a little comparison where I work (I'm a WODeveloper). The upshot is that struts looks like the best non-WO tech I've seen. There are a lot of similarities, as I recall, though the discussion was about half a year ago - about twice my memories half-life :-)

  19. Struts is... by 6Yankee · · Score: 3, Interesting

    ...the soiled nappy of the bastard spawn of Satan.

    Sure, the custom tags make your JSPs look sweet. But what a mess underneath. I think it was something like five or six hops from one file to the next for every request, coming back to the main struts-config.xml file at least twice. That file quickly becomes unmanageable in anything other than the Greatest XML Editor Ever (i.e., not JBuilder!), and I spent around half of my time scrolling through thousands of lines of near-identical XML looking for the bit I had to change.

    There might come a point at which all this unnecessary complexity actually starts to make life easier - but it'd have to be one huge project.

    Saw it, tried it, hated it, ran away.