org.melati.template
Interface ServletTemplateContext

Package class diagram package ServletTemplateContext
All Superinterfaces:
TemplateContext
All Known Implementing Classes:
MultipartTemplateContext, VelocityServletTemplateContext, WebmacroServletTemplateContext

public interface ServletTemplateContext
extends TemplateContext

Interface for a Template engine context for use with Melati and servlets.


Method Summary
 String getFormField(String s)
          Get a field from an HTML Form.
 MultipartFormField getMultipartFormField(String s)
          Get a multi-part field from an HTML form.
 javax.servlet.http.HttpSession getSession()
          Get the HttpSession .
 
Methods inherited from interface org.melati.template.TemplateContext
get, getContext, put, setPassbackExceptionHandling, setPropagateExceptionHandling
 

Method Detail

getFormField

String getFormField(String s)
Get a field from an HTML Form.

Parameters:
s - the field's name
Returns:
the field value, null if not set

getMultipartFormField

MultipartFormField getMultipartFormField(String s)
Get a multi-part field from an HTML form.

Parameters:
s - the field's name
Returns:
the field's value

getSession

javax.servlet.http.HttpSession getSession()
Get the HttpSession .

Returns:
the current HttpSession


Copyright © 2000-2010 PanEris. All Rights Reserved.