• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Manuel Jordan
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While I generally agree with Bear on this topic, I have found Stripes very easy to work with.
 
Manuel Jordan
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic