(1)、tomcat的server.xml中加入:
<Context path="/Calendar" docBase="D:\workspace\CalendarPortlet\WebRoot"/>
(2)、pluto的pageregistry.xml中加入:
<fragment name="Calendar" type="page" >
<navigation>
<title>Calendar</title>
<description>Calendar Example</description>
</navigation>
<fragment name="row1" type="row">
<fragment name="col1" type="column">
<fragment name="p1" type="portlet">
<property name="portlet" value="8.0"/>
</fragment><!-- end of portlet frag -->
<fragment name="p2" type="portlet">
<property name="portlet" value="8.1"/>
</fragment><!-- end of portlet frag -->
</fragment><!-- end of col frag -->
</fragment><!-- end of row frag -->
</fragment><!-- end of 'page' frag -->
(3)、pluto的portletentityregistry.xml中加入:
<application id="8">
<definition-id>Calendar</definition-id>
<portlet id="0">
<definition-id>Calendar.CalendarPortlet</definition-id>
</portlet>
<portlet id="1">
<definition-id>Calendar.TodoPortlet</definition-id>
</portlet>
</application>
(4)、eclipse项目中使用User Library的方式加入portlet-api-1.0.jar
(5)、如果要使用el表达式,需加入jstl-1.0.2.jar、standard-1.0.4.jar