Implementing Widget Functionality in Java

You can often improve the performance and maintainability of your widgets by implementing part of their functionality in Java rather than doing everything in JSP templates. You do this by creating a model processor: a Java class that can modify the widget's model object, and therefore take over some or all of the work done by controller JSP templates.

If a widget has both a model processor and controller JSP templates, then the model processor is executed before the JSP templates.