|
Spring Framework example source code file (welcome-portlet.xml)
The Spring Framework welcome-portlet.xml source code<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd"> <beans> <!-- Wrapping a pre-existing JSR-168-compliant Portlet --> <bean id="welcomePortlet" class="org.springframework.web.portlet.mvc.PortletWrappingController"> <property name="portletClass" value="org.springframework.samples.petportal.portlet.WelcomePortlet"/> <property name="useSharedPortletConfig" value="false"/> <property name="portletName" value="wrapped-welcome"/> <property name="initParameters"> <props> <prop key="dog">Poodle <prop key="cat">Calico <prop key="bird">Macaw </props> </property> </bean> <!-- Alternate method to reuse portlet - simpler, but no ability to rename or set init parameters <bean id="simplePortletHandlerAdapter" class="org.springframework.web.portlet.handler.SimplePortletHandlerAdapter"/> <bean id="simplePortletPostProcessor" class="org.springframework.web.portlet.handler.SimplePortletPostProcessor"/> <bean id="welcomePortlet" class="org.springframework.samples.petportal.portlet.WelcomePortlet"/> --> <bean id="portletModeHandlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping"> <property name="portletModeMap"> <map> <entry key="view" value-ref="welcomePortlet"/> </map> </property> </bean> </beans> Other Spring Framework examples (source code examples)Here is a short list of links related to this Spring Framework welcome-portlet.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.