aspose file tools*
The moose likes Portals and Portlets and the fly likes JSR 286/MVC Support in Spring 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "JSR 286/MVC Support in Spring 3.0" Watch "JSR 286/MVC Support in Spring 3.0" New topic
Author

JSR 286/MVC Support in Spring 3.0

Mike Skit
Greenhorn

Joined: Feb 09, 2008
Posts: 23
Hi All,
Generic question..
Since Spring3.0 is stable, need to know if JSR 286 portlets development using Spring portlet api's is a good idea instead of the current rage of JSF in IBM RAD / Portal Server 6.1 ? In other words is it a good option that we can leverage MVC support provided by SPRING over what is provided by JSF ?

Thanks in advance,
-Mike
Mike Skit
Greenhorn

Joined: Feb 09, 2008
Posts: 23
Guys, any input is appreciated..
Ashish Sarin
author
Ranch Hand

Joined: Nov 20, 2000
Posts: 432
    
    5
Hi Mike,

Spring has its own Spring Portlet MVC framework which is exclusively designed to support portlets 2.0. If you already know Spring MVC then in no time you'll be up and running with Spring Portlet MVC framework. If you look at the API of Spring Portlet MVC then you'll find that it uses the same class / interface name (but different packaging) to make things very easy for any Spring MVC developer to easily learn Spring Portlet MVC. I will say that currently Spring Portlet MVC is the best MVC framework for developing portlets. Using Spring Portlet MVC 3.0 annotations (and support for Bean Validation API, Unit testing using TestContext framework) further simplifies development.

regards
ashish
Author: Portlets in Action
mahammad gouse
Greenhorn

Joined: Jul 04, 2010
Posts: 15
Hi ashish,

I am new to portal. i have an idea what portal is and how to add portlets to a page in a portal.
I have a query here. how can i develop spring mvc portlets in weblogic 10.3 environment.
i have been searching for the books in the market and googling it for 2 weeks. i did not find it.
can you just help me out.



Thanks&Regards
mahammad gouse shaik
Ashish Sarin
author
Ranch Hand

Joined: Nov 20, 2000
Posts: 432
    
    5
Hi Mahammad,

You can refer to the following articles that were published by Dzone to familiarize yourself with developing portlets using Spring Portlet MVC:

http://books.dzone.com/articles/hello-world-portlet-using-Spring-3-portlet-MVC
http://books.dzone.com/articles/spring-30-portlet-mvc-part-2

The articles contain links to the source code which you can use as reference for developing portlets for WebLogic or for any Portlet 2.0 compliant container.

You can also find lot of source code specific to Spring 3.0 Portlet MVC in chapter 7 and 8 of the Portlets in Action book. You can download the source code for chapter 7 and 8 from Google code: http://code.google.com/p/portletsinaction/downloads/list

Hope this helps.

regards
Reddy Prashanth
Ranch Hand

Joined: Aug 09, 2005
Posts: 61
Just gone through the articles. Really helpful for the beginners. Thank you for the efforts.

Regards
Prashanth
Sarah nav
Greenhorn

Joined: Jul 29, 2010
Posts: 1
Using Spring Portlet MVC 3.0 annotations (and support for Bean Validation API, Unit testing using TestContext framework)
Ashish Sarin
author
Ranch Hand

Joined: Nov 20, 2000
Posts: 432
    
    5
Sarah,

If you look at the code of chapter 8 of Portlets in Action at Google code (http://code.google.com/p/portletsinaction/downloads/list), then you'll find how to go about using Bean Validation API, Spring's TestContext framework, Spring Portlet MVC annotations, and so on.

regards
ashish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSR 286/MVC Support in Spring 3.0