Scriptlets

From OpenCms Wiki
Revision as of 10:52, 6 April 2010 by Paul (Talk | contribs)
Jump to: navigation, search

Scriptlets are just JSP files that are composed using regular Java code instead of taglib code. Note that one doesn't exclude the other, so you can even use a mix of the two.

Choosing between scriptlet code and taglib code is usually just a matter of preference.

A typical scriptlet starts by retrieving the CmsObject, which is often a central access point for many of OpenCms' features.

Example scriptlets

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox