aspose file tools*
The moose likes Struts and the fly likes What are the benefits of using struts? (for Neal Ford) 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 » Frameworks » Struts
Bookmark "What are the benefits of using struts? (for Neal Ford)" Watch "What are the benefits of using struts? (for Neal Ford)" New topic
Author

What are the benefits of using struts? (for Neal Ford)

Rian Fergusson
Greenhorn

Joined: Feb 03, 2004
Posts: 8
I am a university student who has learned how to write web applications using with Servlets and JSPs.
My course only slightly covers struts, is it worth while teaching myself how to use/incorperate struts? or are struts only the flavor of the month, which is going to lose favor soon.
does using struts benefit a java web developer?
is you book relevent to a java web developer?
Thank you very much, feedback will help me greatly
ps. sexy looking book cover.
Ariel Valentin
Ranch Hand

Joined: Jan 30, 2004
Posts: 44
Sorry, I am not Neal Ford, but I figured I would reply if that is ok. Once you start designing larger web apps you will see the usefulness of creating tag libraries for your JSP. Integrating Struts into your views follows that same logic, instead of writing scriplets into your JSP and making your HTML developers crazy, just give them a simple tag and show them how to use it.
Hopefully your university will have you implement design patterns in your projects, and you will see that Struts is an excellent example of the front controller design pattern, similar to MVC (Model 2).
Real Life Java Programming: I work for a company that purchased ERP software from the "mother" of the Matrix. They use Struts heavily, so I think this is going to be the flavor many months to come.
Hope this helps...


A. Valentin
Rian Fergusson
Greenhorn

Joined: Feb 03, 2004
Posts: 8
Thank you Ariel,
I was part of a 4 person team that developed an online learning application, the project took 18 weeks.
The point you raised about scriplets making HTLM developers crazy is completely true. At the beginning of the project we decided to use a design pattern the closely resembles the "front controller" pattern (I was not familler with the term, but I understand the concept). The idea was to use beans with jsp tags (i.e. <jsp:useBean> as the preferable option to using jsp embedded java. We soon found that jsp tags were to simplistic for what was required. therefore were adopted jsp embedded java and the project basically turned into java programming using dreamweaver.... not only this was slow but it was totally unmanageable and a pain to maintain. Knowing that it was possible to create custom tags libraries would have helped greatly.
Good to see struts will be around in the future, it sounds worth learning.
Once again thank you...
Neal Ford
Author
Ranch Hand

Joined: Oct 23, 2003
Posts: 82

My course only slightly covers struts, is it worth while teaching myself how to use/incorperate struts? or are struts only the flavor of the month, which is going to lose favor soon.

I think Struts is useful in many ways. It cuts down on the amount of time to build web applications (once you become familiar with it), and it shows good examples of how design patterns solve common problems.
As for Struts' durability, I don't know of many projects that are being started that aren't using a framework of some kind, and Struts is by far the most popular. Open source projects become popular because they solve a problem, and Struts is very popular. The more applications are written in it, the less likely it will go away (for reference, see Microsoft Windows).

is you book relevent to a java web developer?

I certainly hope so! It covers the evolution of Java web development from servlets, through JSP, custom tags, and finally design patterns and frameworks. I think it benefits any Java developer starting to do web development because it provides context and shows best practices.

ps. sexy looking book cover.

Thanks, I posed for it myself! Seriously, it is the publisher's branding technique, which uses paintings from a catalog from the late 18th century of regional costumes (or, in my case, lack of). If you look at their other titles, they have a similar look and feel. I chose the Marquesian Warrior, who happens to be a cannibal, out of the 3 options they gave me. He was the most striking.


Neal Ford<br />Author, <i>Art of Java Web Development: Struts, Tapestry, Commons, Velocity, JUnit, Axis, Cocoon, InternetBeans, WebWork</i><br /><a href="http://www.nealford.com" target="_blank" rel="nofollow">www.nealford.com</a>
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

does using struts benefit a java web developer?

This has been discussed before, please do a search.


Groovy
Rian Fergusson
Greenhorn

Joined: Feb 03, 2004
Posts: 8
Thanks alot for the reply Mr. Ford.
i spent most of my day off researching and downloading struts, i didn�t realize it was so far reaching. i think i might be a little busy with some home study.
Sorry if my questions seemed a little 'simple', thank you for your complete replies.
Its good to see a propeller head with a sense of humor, keep up the posing. Brad Pitt has to retire at some stage.....
Rian Fergusson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What are the benefits of using struts? (for Neal Ford)
 
Similar Threads
How useful is Struts?
To James Holmes:
Using Struts with VAJ
Questions regarding NetBeans book
Apache Struts 2 Web Application Development