10-Oct-03 (Created: 10-Oct-03) | More in 'Java-Portlets'

Some sample portlet definitions


(?xml version="1.0" encoding="UTF-8"?)
(registry)
(!--
**********************************************************************
* SamplePortlet
**********************************************************************
--)
    (portlet-entry name="SamplePortlet" hidden="false" type="instance" application="false")
        (meta-info)
            (title)SamplePortlet title(/title)
            (description)SamplePortlet Description(/description)
        (/meta-info)
        (classname)com.indent.actions.portlets.SamplePortlet(/classname)
        (media-type ref="html"/)
        (url cachedOnURL="false"/)
    (/portlet-entry)
(!--
**********************************************************************
* ASurvey
**********************************************************************
--)
    (portlet-entry name="ASurvey" hidden="false" type="ref" parent="JSP" application="false")
        (meta-info)
            (title)Survey Application(/title)
            (description)Survey Application(/description)
        (/meta-info)
        (classname)org.apache.jetspeed.portal.portlets.JspPortlet(/classname)
        (parameter name="template" value="Login.jsp" hidden="true"
            cachedOnName="true" cachedOnValue="true"/)
        (parameter name="action" value="portlets.checkLogin1"
            hidden="true" cachedOnName="true" cachedOnValue="true"/)
        (parameter name="myrequestName" value="updateDatabase"
            type="boolean" hidden="false" cachedOnName="true" cachedOnValue="true"/)
        (media-type ref="html"/)
        (url cachedOnURL="true"/)
        (category group="Jetspeed")demo(/category)
        (category group="Jetspeed")jsp.demo(/category)
    (/portlet-entry)

(!--
**********************************************************************
* Document mange
**********************************************************************
--)
    (portlet-entry name="Document mange" hidden="false" type="ref"
        parent="JSP" application="false")
        (meta-info)
            (title)Docu management(/title)
            (description)Docu management(/description)
        (/meta-info)
        (classname)org.apache.jetspeed.portal.portlets.JspPortlet(/classname)
        (parameter name="template" value="Doclogin.jsp" hidden="true"
            cachedOnName="true" cachedOnValue="true"/)
        (parameter name="action" value="portlets.ihdsDocManagement"
            hidden="true" cachedOnName="true" cachedOnValue="true"/)
        (media-type ref="html"/)
        (url cachedOnURL="true"/)
        (category group="Jetspeed")demo(/category)
        (category group="Jetspeed")jsp.demo(/category)
    (/portlet-entry)
(!--
**********************************************************************
* FileUploadTest
**********************************************************************
--)
    (portlet-entry name="FileUploadTest" hidden="false" type="ref"
        parent="JSP" application="false")
        (meta-info)
            (title)FileUploadTest(/title)
            (description)FileUploadTest(/description)
        (/meta-info)
        (classname)org.apache.jetspeed.portal.portlets.JspPortlet(/classname)
        (parameter name="template" value="hello.jsp" hidden="true"
            cachedOnName="true" cachedOnValue="true"/)
        (parameter name="action"
            value="portlets.FileUploadPortletAction" hidden="true"
            cachedOnName="true" cachedOnValue="true"/)
        (media-type ref="html"/)
        (url cachedOnURL="true"/)
        (category group="Jetspeed")demo(/category)
        (category group="Jetspeed")jsp.demo(/category)
    (/portlet-entry)
(/registry)