|
From: William G. T. Jr. <wg...@ru...> - 2004-05-02 05:14:41
|
Folks, I have packaged up a Portlet Application that may be of interest. The war file is available at: http://www.tnt-web.com/springportlet/springportlet.war You should be able to download the war file and then deploy using the tools for whatever portlet container you are using. I'm running this with uPortal2.3 which embeds Pluto. There are two portlets defined in WEB-INF/portlet.xml 1) InspectPortlet - a "fat" portlet that displays various bits of info available through the Portlet API (built using only GenericPortlet) 2) ExampleSpringPortlet - proof-of-concept portlet built using Spring MVC layer adapted for the Portlet API. The portlet name maps to a DispatcherPortlet which bootstraps: a) applicationContext.xml - the root PortletApplicationContext b) ExampleSpringPortlet-portlet.xml - config for the named DispatcherPortlet (handler mappings, view resolvers, controllers, etc.) As configured, ExampleSpringPortlet simply maps PortletModes to view names and finally dispatches to JSPs: WEB-INF/jsp/portlet/view.jsp WEB-INF/jsp/portlet/edit.jsp WEB-INF/jsp/portlet/help.jsp The Portlet API defines a tag-lib as well and I use that to generate the RenderURLs you will see in the views. later. Bill ps. If you are using uPortal2.3 here are the deploy steps: 1) ant deployPortletApp -DportletApp=/path/to/springportlet.war 2) bounce tomcat 3) using the Channel Manager define two new Portlet Channels. The portlet Ids are: springportlet.InspectPortlet springportlet.ExampleSpringPortlet |