aspose file tools*
The moose likes Spring and the fly likes Spring in Action Book Question - An expert opinion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring in Action Book Question - An expert opinion" Watch "Spring in Action Book Question - An expert opinion" New topic
Author

Spring in Action Book Question - An expert opinion

Armando Flores Ibarra
Greenhorn

Joined: Oct 17, 2009
Posts: 17
I'm being very honest, it is NOT of my interest to start a discussion about the best framework. What I am REALLY interested of it is in an EXPERT opinion from a smart guy like you. I'm using Seam right now for developing a web application at work. I chose this framework because "imoh" was the easiest but most complete solution for my "problem". Could you give me some points that I could miss in my choice over Spring MVC and/or Grails?

Thank you very much !


SCJP 6
Craig Walls
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 335
    
    5
I'll be honest...I've only tinkered with Seam a tiny little bit. So I'm probably not all that qualified to answer your question.

That said...The new annotation-based Spring @MVC is so very simple and yet very flexible. It's certainly different than Seam. But I can't imagine it being more difficult than Seam.

For example, just to give a taste of what can be done in Spring @MVC, here's how you might write a simple controller class:



This controller will respond to requests for "/product/{productId}" requests, use a service to lookup the product information, place that information into the model, and then direct the request to the "productPage" view. Simple enough...and kinda RESTful at the same time.

As for the view itself, that's a job that falls to a view resolver. Depending on the request, that view resolver could produce an HTML, JSON, XML, Atom, RSS, or some other view output.

Spring in Action - Unleash POJO power in your applications!
Modular Java - Discover the secret weapon to modularity on the Java platform!
XDoclet in Action - Your complete guide to code generation with XDoclet.
Armando Flores Ibarra
Greenhorn

Joined: Oct 17, 2009
Posts: 17
Thank you very much for your answer !
 
jQuery in Action, 2nd edition
 
subject: Spring in Action Book Question - An expert opinion