aspose file tools*
The moose likes Other Application Frameworks and the fly likes Which frame work to choose (Spring,Struts...Stripes)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Which frame work to choose (Spring,Struts...Stripes)?" Watch "Which frame work to choose (Spring,Struts...Stripes)?" New topic
Author

Which frame work to choose (Spring,Struts...Stripes)?

Murali Mohan
Ranch Hand

Joined: Jan 09, 2006
Posts: 66
Since there are many java web development available, and each have their +ve & -ve sides. But they all try to solve a common problem ( Better scalability, standard, easy to use ..... etc. ). Then how to evaluate a pirticular framework. Which frame work to choose for a large project which requires performance and should be easy to maintain. Virtually every large project now a days uses Struts, some times with spring.

I don't have much experience on these frameworks. If you people have exeperience or knowledge of these framewokrks or some other. Then please provide your comments


Thanks,<br />Murali...
Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
Hello Murali

your question is really a hot topic,

a good combination in these days is Struts/Hibernate/Spring

maybe other members are not agree,but i am giving my opinion

maybe other can say use jsf instead of struts, or use ibatis instead of hibernate

now i can tell that spring mvc is powerful a good rival for struts

regards


kill your pride, share your knowledge with all
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

Originally posted by Murali Mohan:
Virtually every large project now a days uses Struts, some times with spring.


That's a pretty broad statement. I know of many large projects that don't use Struts or anything like it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
Hello guys

That's a pretty broad statement. I know of many large projects that don't use Struts or anything like it.


so the obvious question is
what is use it instead of Struts???

regards
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

What makes you think a framework is necessary at all?

It's quite easy to create a simple Front Controller (if desired) without all the baggage that large frameworks bring to the party.
Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
What makes you think a framework is necessary at all?

a framework make easy your live,
is not an enough reason?,
why rebuild the wheel?

It's quite easy to create a simple Front Controller (if desired) without all the baggage that large frameworks bring to the party.

do it!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

Originally posted by Manuel Jordan:

a framework make easy your live,


I have found the exact opposite. To me, they just get in the way and while they may seem to help things get started faster, they don't really save any time in the long run. Your mileage may vary.

do it


I have.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

While I generally agree with Bear on this topic, I have found Stripes very easy to work with.


GenRocket - Experts at Building Test Data
Manuel Jordan
Ranch Hand

Joined: Sep 29, 2006
Posts: 131
Hello guys

well

I have found the exact opposite. To me, they just get in the way and while they may seem to help things get started faster, they don't really save any time in the long run.

ok, share with all, which frameworks???

Your mileage may vary.

i am agree

It's quite easy to create a simple Front Controller (if desired) without all the baggage that large frameworks bring to the party.

are you talking about of Struts?? or other web mvc framework??
i have perfect references about spring mvc


I have.

i guess for your mvc logic (taking reference "Front Controller")

ok, but about of persitence and j2ee frameworks?? (hibernate,ibatis,spring)


exactly what framework for you are bad???
(i have bad references about tapestry for example)

I have found Stripes very easy to work with.

i have excelents references of that framework

regards guys
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
Ever more projects from small to large are finding that Struts is actually more (far more) trouble than it's worth.
It's too invasive, too heavy.

A better solution would be Spring MVC in combination with JSF for the frontend, with a Springbased (and/or EJB3 based) middle tier and backend.


42
Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
Originally posted by Bear Bibeault:
What makes you think a framework is necessary at all?

It's quite easy to create a simple Front Controller (if desired) without all the baggage that large frameworks bring to the party.


For me a framework is more the "collective experience of others" rather than baggage. It is more the question of who has the best implementation of our everyday needs than "do I use a framework?". Down the road I always come up solving the same problems over and over again. Why not use a framework which is polished and tested?

That aside when it comes to choosing the framework things get tricky. I've used JSF and Hibernate. JSF being on topic here as I guess the question is geared to the MVC side of frameworks.

When choosing I like to have two main criteria:
-MVC: in the understanding that I can move from web to Swing practically overnight.
-Testing: are test units easy to implement.

I found Struts to be to intrusive and more of an MVcvC (if you'll allow me the expression) type of framework. Making it harder to move from a servlet environment to a Swing.

JSF with its managed beans has a very easy way to create tests. It is also easy to move away from web to Swing. Except that JSF doesn't (at least as far as I know) provide a controller fro Swing. So you fall into doing your own controller.

I've been looking more and more into Spring with its WebController and BaseController and I think this is they way to go. Not only does it allow me to keep my logic away from "servletish" implementations and easy to test. It provides both a web and GUI controller. It also looks much more modular and lightweight than JSF.

For those interested here is a link to some documents showing how to move from web to GUI relatively quickly.

Spring Web and Swing example

Cheers,
Gerardo
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
A framework MAY make life easy.
But don't just use a framework because it's "cool" or because "you're supposed to", those aren't valid reasons.
And certainly don't use a particular framework just because "it's what everyone else is using so it must be the best" or "it's company policy to use it", carefully select what you're going to use based on your particular requirements.
Using Struts for something that will have a million lines of backend code all producing some output that will be shown using a single html page (more about that later) is the wrong choice for example.
In fact using a web interface for that thing might be the wrong choice... It may well be far better to create a very small Swing application or applet.

I've seen applications where things were used for the wrong reasons and they're generally horrid both to use and especially to maintain as the developers had to twist and hack themselves into corners to make their requirements fit the tool/library/framework rather than selecting the tool to fit the requirements.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Stripes was designed with testing in mind. In my opinion, it is the easiest framework to unit test. Read the testing documentation and see for yourself.
 
wood burning stoves
 
subject: Which frame work to choose (Spring,Struts...Stripes)?