Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The defineObjects tag creates a number of useful variables that the JSP page can use.  Refer to the JSR-286 Spec for more information.  Make sure you have the v2.0 of the portlet URI when defining the portlet prefix.

Code Block
<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0" %>
<portlet:defineObjects/>


<!-- Page can now access user preferences and other items. -->
 
<p>Hello ${portletPreferencesValues['prefName'][0]}</p>

...