• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pros and Cons of Using Struts

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,
I am evaluating the Apache Struts Framework to be used for our new Project.
What we are looking at is:
"A framework that allows us to focus on building application without spending a lot of time writing the code, a framework that is organized and result to coordinated processing."
Telling you about the Project:
- J2EE platform
- Oracle 9i as Database
- Its an intranet based application ( Browser based ), but one functional module would be a Java Swing application.
To meet the above requirement, I have two Choices:
- Use Struts Framework ( cost is not a big issue )
- Use an in house framework
Advantages of inhouse framwork [ MasterCraft ] are:
- Based on MVC pattern
- Provide Client server enviornment for Development
- Providees with Data Modelling (results to persistent EJB)
- Tool to create Front end View ( JSP or Java Swing )
- Unit testing of front end and backend, before integartion
- version Control
- Automatic code generation
- Few generic ones, that are in strust too
Using Mastercraft seems very lucrative, but still before taking any decision we need to look at other options too...
Can you suggest any great advantage or Disadvantage of Struts....... which is specific to it.
Thaks in Anticipation.....
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ruchi Gupta:
Dear All,
I am evaluating the Apache Struts Framework to be used for our new Project.
What we are looking at is:
"A framework that allows us to focus on building application without spending a lot of time writing the code, a framework that is organized and result to coordinated processing."
Telling you about the Project:
- J2EE platform
- Oracle 9i as Database
- Its an intranet based application ( Browser based ), but one functional module would be a Java Swing application.
To meet the above requirement, I have two Choices:
- Use Struts Framework ( cost is not a big issue )
- Use an in house framework
Advantages of inhouse framwork [ MasterCraft ] are:
- Based on MVC pattern
Struts is based on MVC
- Provide Client server enviornment for Development
Struts is not a development environment, but a framework to make web applications more mainteinable and easy to implement
- Providees with Data Modelling (results to persistent EJB)
- Tool to create Front end View ( JSP or Java Swing )
As told before, Struts is a framework, not a development environment. You can build some Struts components by using xdoclet and ant together
- Unit testing of front end and backend, before integartion
You can use ant and junit(together with httpunit)
- version Control
No development environment
- Automatic code generation
No development environment
- Few generic ones, that are in strust too
Using Mastercraft seems very lucrative, but still before taking any decision we need to look at other options too...
Can you suggest any great advantage or Disadvantage of Struts....... which is specific to it.
Thaks in Anticipation.....


The main advantage of Struts, IMHO, is that it allows to easily separate different layers(The view, model and controller) making application more maintenable and scalable. The reason is that all the requests pass by a Servlet Controller and then addressed to various 'Actions' to be executed. It comes with a series of tag libraries useful if you're using the JSP as presentation technology. The maintenability is due to the high quantity of set-up information provided to the application, which allow to avoid hard-coding in programs.
My 2 cents.
Marco
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If most ones of your team are not familar with Struts and no available Tutor for it, you should not take Struts as frameworks.
As you have said, MasterCraft is good one for your team. Maybe you can have a research on Struts first but not using it in this project.
Pros:
1.Open source framework
2.Good example for understanding J2EE Design Pattern
3.Excellent Tag lib
4.Make application more configrurable
5.Supported by many tools & popular IDEs
Cons:
1.Still in development
2.Taglibs are hard to grasp
3.Add complexity to application
If your team uses XP as process, you can hava a spike on it first. And then applying Pair Programming to teach blue ones.
Hope that it can help u!
[ February 26, 2003: Message edited by: tonyqu ]
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the hardest thing about Struts is that everything has to be set up perfectly or you end up getting non-helpful error messages. There are so many pieces that have to integrate together that it is very easy to misconfigure Struts and have nothing work.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic