Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downsides of using Stripes+Spring vs Spring MVC

I am coming from Struts 1 world. Now I am starting a new project and we are using Spring.

I could use Spring MVC, but seeing how simple it is to use Stripes (no xml is a big plus) I am tempted to use that with our brand spanking new Spring web application. I have no experience in either Stripes or Spring MVC (apart from basic CRUD application).

Question is, what are the downsides of using Stripes as opposed to Spring MVC? Several parts of the application will be RESTful, will it make it harder if we use Stripes? What about validation? I suppose Stripes will be easier to implement, no?

like image 895
Rosdi Kasim Avatar asked Jul 21 '10 10:07

Rosdi Kasim


People also ask

Which of the following is a disadvantage of spring MVC?

Spring has a dependency injection problem. When you create your application, there's no easy way to test it out because what information is it going to use?

Which is better spring boot or spring MVC?

Spring MVC helps to develop applications easily. Spring Boot helps to develop the applications easily and quickly with features like auto-configuration and starters. Spring Boot helps in reducing the development time as all the dependency-related task gets handled.

What is the difference between spring and spring MVC?

Spring Boot is considered a module of the Spring framework for packaging the Spring-based application with sensible defaults. Spring MVC is considered to be the model view controller-based web framework under the Spring framework. For building a Spring-powered framework, default configurations are provided by it.

Which is better spring MVC or Struts?

Spring framework is more efficient than struts but sometimes spring framework provides complexity but in struts, everything is simple due to its easy and maintainable design. Spring framework has more functionality than struts. Spring MVC is mainly used because it is more secure and better performance.


1 Answers

Stripes is a great framework. It's been our framework of choice the past few years and has yet to disappoint.

However, if you mean RESTful in the sense that you want to use HTTP PUT/DELETE, etc. Stripes might not be your answer. I think you'd have to set up Filters, or additional logic in your Beans, it wouldn't be straight-forward (as it seems to be in Spring from a cursory googling).

On the other hand, if you mean things like /app/delete/3 or /app/update/4 & pass POST params, Stripes is an excellent choice.

The Stripes book (Pragmatic Programmers) explains the framework well, and has a chapter on using DI with Spring. All the normal bells and whistles (including validation) are excellent.

like image 127
lucas Avatar answered Oct 16 '22 18:10

lucas