Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring MVC vs JSF [duplicate]

I haved used Struts framework in all my past applications and for the new application,my client has requested to use either Spring MVC or JSF? I am not familiar with these two frameworks but our timelines are strict. So, I am not sure which framework I will choose to build the application.

Can anyone please suggest me which framework will be easy to learn in quick time?

Thanks

like image 378
Yatish Avatar asked Feb 12 '10 04:02

Yatish


People also ask

Is Spring or JSF better?

I'd suggest SpringMVC, because of the timeframe: you need something with less steep learning curve. SpringMVC is more like Struts than JSF. in order to use the power of JSF you need to get familiar with many "tricks", while SpringMVC is more or less straightforward.

What is webmvc?

17.1 Introduction to Spring Web MVC framework. The Spring Web model-view-controller (MVC) framework is designed around a DispatcherServlet that dispatches requests to handlers, with configurable handler mappings, view resolution, locale and theme resolution as well as support for uploading files.

What is SpringMVC?

What Is Spring MVC? Spring MVC is a library within the Spring framework that simplifies handling HTTP requests and responses. It's built on the Servlet API and is an essential component of the Spring Framework.


2 Answers

Of course, it's going to be different for everyone, but I'd suggest Spring MVC, as it's a request-based framework like Struts. Of course, you'll want to learn about core Spring stuff like Inversion of Control / Dependency Injection (but I'd consider that a plus...) and whatever you're going to use for database access (just JDBC? Hibernate? iBatis? etc.).

JSF is component-based, which is a bit different paradigm from request-based frameworks. If you do plan to go the JSF route, I'd suggest looking at Seam from JBoss. It's more of a front-to-back framework that uses JSF as the web/presentation end and EJB as the backend. And pretty much all the people who've used it claim it makes JSF and EJB more usable than they are by themselves.

Good luck on whichever technology you choose, though. (Sounds like you'll need it - strict timelines and a client that's prescribing web frameworks?)

like image 158
Nate Avatar answered Oct 02 '22 21:10

Nate


I'd suggest SpringMVC, because of the timeframe:

  • you need something with less steep learning curve. SpringMVC is more like Struts than JSF
  • in order to use the power of JSF you need to get familiar with many "tricks", while SpringMVC is more or less straightforward
like image 23
Bozho Avatar answered Oct 02 '22 23:10

Bozho