Skip to page content

CeDiploma Validation Service
This portlet may not be moved

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.

  1. 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)
  2. Put any content you like in the JSP file (follow community best practices for for using HTML, JavaScript, and CSS)
  3. Publish a new portlet based on the /jasig-widget-portlets/SimpleJspPortlet definition
  4. 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.