File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes When use a framework like Struts ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "When use a framework like Struts ? " Watch "When use a framework like Struts ? " New topic

When use a framework like Struts ?

Paulo Lima

Joined: Apr 04, 2002
Posts: 10
What is the best approach to build a J2EE Web Application solution ? Use mvc web framework like Struts? Build a new solution and applies the Blue Prints and Design Patterns? Are there other web’s framework ?
I'm trying to define a Web Development approach to build applications to acquire speed, quality, security, flexibility to my team. I think that the Struts will become a standard on J2EE communities and open source groups. But I’m not sure if this will implies on some limitation in the future if the applications needs to grow.
Paulo Lima.
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Welcome to the Java Ranch, we hope you�ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!

Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
You can either use Struts or can write your own MVC framework. The focus should be to use MVC in your architecture and have clear demarcation between the MVC layers.
Struts is mature, free, open source and does most of the MVC jobs. If you use Struts with caution, you will not endup buying into the framework.
Struts has several limitations though - the most we hear about are with the tag libraries. But the limitations are not in the architecture of Struts, they are mainly cosmetic.

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Doug Wang
Ranch Hand

Joined: Oct 05, 2001
Posts: 445
Struts encourages Model 2 architecture - an application architecture based on the Model-View-Controller (MVC) design paradigm, therefore enforces RIGHT design.
Yes, Struts is mature, free, open source and does most of the MVC jobs. Struts is ready-made, and will save you much design time.
As to your concern, such Model 2 architecture does advance extensibility thanks to its layered arch. For example, to extend your web application, you simply need to add new view components and make modifications to the controller component.
[ July 23, 2002: Message edited by: Doug Wang ]

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep
Doug Wang
Ranch Hand

Joined: Oct 05, 2001
Posts: 445
Also check out the Jakarta Projects Forum. Many excellent threads out there are discussing Struts issues.
I agree. Here's the link:
subject: When use a framework like Struts ?
It's not a secret anymore!