How To Create a Simple JSP Portlet
These are basic instructions for creating a new portlet based on
SimpleJspPortlet. This is one approach (of several) for creating a
simple, custom portlet with a minimum of effort or Java Portlet
Development experience.
- In your JasigWidgetPortlets overlay (preferred) or project source code, create a new JSP file in the /src/main/webapp/WEB-INF/jsp directory (e.g.
/src/main/webapp/WEB-INF/jsp/myPage.jsp
)
- Put any content you like in the JSP file (follow community best practices for for using HTML, JavaScript, and CSS)
- Publish a new portlet based on the
/jasig-widget-portlets/SimpleJspPortlet
definition
- Be sure to provide the name of your JSP file, not including the file extension, as the
SimpleJspPortletController.jspName
preference (e.g. 'myPage')
Cook Book Examples:
- Here is a link to Apereo.org that creates an entry in uPortal statistics every time a user clicks it.