org.melati.template
Interface 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
 java.lang.String getForm(java.lang.String s)
          Get a field from an HTML Form.
 MultipartFormField getMultipartForm(java.lang.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

getForm

java.lang.String getForm(java.lang.String s)
Get a field from an HTML Form.

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

getMultipartForm

MultipartFormField getMultipartForm(java.lang.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-2008 PanEris. All Rights Reserved.