JSP Files: The Alpha and the Omega

I call the JSP files the alpha and omega because every Struts transaction begins and ends on a JSP page. They represent the outermost layer of the view, controlling the formatting of information as it is presented to the user and (through JavaScript and other client-side scripting) providing the first level of validation to input from the user.

JSP files under Struts look much the same as normal JSP files, except that the Struts taglibs are used to provide quick access to common Struts functionality and to reduce the number of raw Java scriptlets used on the page.

JAVA SCRIPTLETS VERSUS TAGS

There’s a certain amount of programmatic dogma floating around the software industry right now. The basic premise ...

Get Struts Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.