| org.sakaiproject.vm.VelocityServlet
VelocityServlet | public class VelocityServlet extends org.apache.velocity.servlet.VelocityServlet (Code) | |
Responds with the expansion of a Velocity Template. The template and context references are specified in the request.
|
escapeVmName | protected String escapeVmName(String name)(Code) | | Change any characters that Velocity doesn't like in the name to '_' to make a valid Velocity name
Parameters: name - The name to convert. The name converted to a valid Velocity name. |
handleRequest | public Template handleRequest(HttpServletRequest request, HttpServletResponse response, Context ctx)(Code) | |
main routine to handle a request. Called by VelocityServlet, your responsibility as programmer is to simply return a valid Template
Parameters: ctx - a Velocity Context object to be filled with data. Will be used for rendering this template Template to be used for request |
loadConfiguration | protected Properties loadConfiguration(ServletConfig config) throws IOException, FileNotFoundException(Code) | | Called by the VelocityServlet init(). We want to set a set of properties so that templates will be found in the webapp root. This makes this easier to work with as an example, so a new user doesn't have to worry about config issues when first
figuring things out
|
|
|