Velocity Portlet

Tutorial 7 introduces the Velocity Portlet. This section covers:

Let's get started. From the JPortal distribution root directory, type:


maven -Dtutorial=7 jetspeed:deploy

Recommend bringing up these files in your editor:

  • 1. webapp/WEB-INF/conf/t7-portlets.xreg
  • 2. webapp/WEB-INF/psml/user/anon/html/default.psml
  • 3. webapp/WEB-INF/psml/user/turbine/html/default.psml
  • 4. src/java/org/apache/jetspeed/tutorial/modules/actions/portlets/TutorialStockQuoteAction1.java
  • 5. src/java/org/apache/jetspeed/tutorial/modules/actions/portlets/TutorialStockQuoteAction2.java
  • 6. src/java/org/apache/jetspeed/tutorial/modules/actions/portlets/CobiJonesPortletAction.java
  • 7. webapp/WEB-INF/templates/vm/portlet/html/stock-quote1.vm
  • 8. webapp/WEB-INF/templates/vm/portlet/html/stock-quote2.vm
  • 9. webapp/WEB-INF/templates/vm/portlet/html/cobi-jones-form.vm
  • 10. webapp/WEB-INF/conf/JPortalTurbine.properties

since we will reference them in tutorial 7.