Versions Compared

Key

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

...

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


<!-- Page can now access user preferences and other itemsvalues. -->
 
<p>Hello ${portletPreferencesValues['prefName'][0]}</p>
 
<!-- Access to portlet session attributes as a map -->
 
<p>You last said ${portletSessionScope['conversation'].lastItem}</p>
 
<!-- Access to portlet config -->
 
<p>Portlet's static name from portlet.xml is ${portletConfig.portletName}</p>

Miscellaneous

  • You can access environment variables using markup such as <p>USER environment variable=<spring:eval expression="@systemEnvironment['USER']"/></p> (TBD Verify this)

 

Info
iconfalse
titleAdditional References

JavaScript Best Practices