THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
Out of the box, the framework supports JSP, Velocity, and FreeMarker for your application presentation layer. Support for other view technologies is easy to add, if needed.
JSP Example
The framework comes packaged with a tag library (taglibs) that make it easy to reference framework resources from JavaServer Pages.
Input.jsp
<%@ taglib prefix="saf" uri="/action" %> <html> <head> <title>Cookbook - Simple Input Form using Action Properties</title> <saf:head/> </head> <body> <saf:form method="POST"> <saf:textfield label="Please enter your name" name="name"/> <saf:submit/> </safform> </body> </html>
The process of events will go as follows:
- The client will make request for the page
Input.do
. - Since the page has an
.do
extension, the framework will look up the action forInput
. - The framework will select the JSP to render.
- The JSP will use the
saf
tags to output fields, labels, hyperlinks, and localized messages. - The client will receive pure HTML to render.