• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

STRUTS is for thickos!!!

 
Adam Till
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13073
6
 
Udayan Patel
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sathya Srinivasan
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic