File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes STRUTS is for thickos!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "STRUTS is for thickos!!!" Watch "STRUTS is for thickos!!!" New topic
Author

STRUTS is for thickos!!!

Adam Till
Ranch Hand

Joined: Oct 11, 2002
Posts: 41
Or is it?

Is STRUTS essentialy a design pattern frame work for people who have no experience in designing software using standard and useful design patterns?

Im trying to figure out if I seriosuly study it.

I have used Fusebox (in ColdFusion) but that was a pain if you wanted to imprint your own styles. Is STRUTS the same?

Thanks for your help and appologies to STRUTS users for calling them thick.


Adam Till<br />SCJP SCJD SCWCD
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
See this current JavaServerFaces discussion.
Udayan Patel
Ranch Hand

Joined: Oct 14, 2004
Posts: 94
Originally posted by Adam Till:
Or is it?

Is STRUTS essentialy a design pattern frame work for people who have no experience in designing software using standard and useful design patterns?

Im trying to figure out if I seriosuly study it.

I have used Fusebox (in ColdFusion) but that was a pain if you wanted to imprint your own styles. Is STRUTS the same?

Thanks for your help and appologies to STRUTS users for calling them thick.


Struts basically was designed to speedup web development. But it went outta' wac. Not lot of people realize that MVC is not about web, MVC has much more to it. Struts limits your software to web front only. MVC should decouple your business logic from your frontend so it can entertain any client and not just http request. Hah, what i learned so far is, ignore the job descriptions where struts is one of the required element. not that I hate struts or something but Not interested in web applications only. I have worked on enterprise infrastructure projects and Would like to remain there.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hmm, I don't have any hands-on with Struts but I have used a couple very similar frameworks. If your model reflects that it's being used with Struts views and controllers I'd have to guess somebody failed to keep the design clean. Struts is a web front end but it shouldn't restrict you to a web front end.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Sathya Srinivasan
Ranch Hand

Joined: Jan 29, 2002
Posts: 379
Originally posted by Adam Till:

Is STRUTS essentialy a design pattern frame work for people who have no experience in designing software using standard and useful design patterns?


No. Struts uses the ubiquitous MVC pattern (to an extent) along with a bunch of other simple patterns (Command, Interpreter, etc.). It's essentially a framework - a piece of standardized library that can be extended and customized to your application's needs.

Originally posted by Adam Till:

Im trying to figure out if I seriosuly study it.


Depends. Consider the following. If you think you satisfy these, you might want to consider studying it.

1. Your application currently uses JSP and Servlets (hence, web-based)
2. Your web-pages contain forms that users fill-in and send data to server.
3. Your application reads each parameter from form, constructs a data-transfer-object and then sends to other applications for processing.
4. Your application does not have a clearly defined separation between View and Controller. That is, a lot of Java code is inside your JSPs.
5. You don't have a neat error handling mechanism that you can use to elegantly display errors to the users.

Struts essentially provides all these features. In effect, a bunch of guys who kept doing the above-mentioned things repeatedly figured out that they are better off by writing a simple wrapper framework around Servlets that would take care of these mundane tasks and made it open-source. Hence Struts.


Cheers, Sathya Srinivasan - SCJP 1.2, SCWCD 1.2, SCMAD 1.0
Co-Author of Whizlabs SCMAD Certification Exam Simulator and SCMAD Exam Guide Book
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Originally posted by Stan James:
Hmm, I don't have any hands-on with Struts but I have used a couple very similar frameworks. If your model reflects that it's being used with Struts views and controllers I'd have to guess somebody failed to keep the design clean. Struts is a web front end but it shouldn't restrict you to a web front end.


yes, and that somebody was the person who designed Struts.


42
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
yes, and that somebody was the person who designed Struts.


Really? I'm curious to know how Struts influences your model. Before I have to decide how to do the next project!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: STRUTS is for thickos!!!
 
Similar Threads
Struts Question
Part II: can I use Struts in design
Pro Jakarta Struts - Is it helpful for beginners?
Struts Design and Programming by Budi Kurniawan
Design pattern used in Struts Framework ?