Note
JSP Templates must be accesible from from context path. Example if a Jsp Template is /myTemplates/myTheme/myComponent.jsp, it needs to be placed in the context-path of the webapplication. Placing them in the classpath will not work. It works for Velocity and Freemarker templates but not Jsp templates.
Syntax
Jsp template is scripted just like a normal jsp would.
To get the stack, the WebWork's set tag could be used. The following will get context object with id 'myContextObjId' and put it into page scope under 'myPageObjId'.
<ww:set name="myPageObjId" value="#myContextObjId" scope="page" />
The Component resulting in the execution of the Jsp Template will be pushed into the top of the stack before the Jsp template is included. Hence, to get say for example the a parameter with name 'myParamName', WebWork's property tag could be used.
<ww:property value="parameters.myParamName" /> Or <ww:property value="parameters['myParamName']" />
Other property of the Component could be accessed the normal WebWork's way using Ognl expression.