Pure JSP Widgets
In versions of the Widget Framework prior to version 3.0, both the
view and the controller components were always implemented in JSP: a
widget always contained a controller
folder
alongside the view
folder containing controller
templates. In this kind of widget, the controller templates obtain
or calculate all the values required to produce a specific view and
write them to a bean ready for use by the view template.
The view templates are stored in a
widget-name/view
folder, and it should usually contain just one template for each
view. The view
folder may, however, also contain
a helpers
sub-folder. This folder can be used to
hold templates containing additional code that can be shared between
the views.
The controller templates are stored in a
widget-name/controller
folder, and should usually contain one
controller.jsp
containing common code, plus one
template for each view. Like the view
folder, the
controller
folder may also contain a
helpers
sub-folder for shared code.
For detailed instructions on how to make a pure JSP custom widget, see Creating a JSP Custom Widget.