|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.template.velocity.VelocityTemplateContext
org.melati.template.velocity.VelocityServletTemplateContext
public class VelocityServletTemplateContext
Implements a template context for Melati with Velocity. The Request and Response are placed in the context so that they can be accessed by the Form object.
| Field Summary | |
|---|---|
static String |
FORM
Mimicking the $Form behaviour of Webmacro. |
static String |
REQUEST
The HTTP request object context key. |
static String |
RESPONSE
The HTTP response object context key. |
| Fields inherited from class org.melati.template.velocity.VelocityTemplateContext |
|---|
velContext |
| Constructor Summary | |
|---|---|
VelocityServletTemplateContext(org.apache.velocity.VelocityContext vc)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getFormField(String s)
Get a field from an HTML Form. |
MultipartFormField |
getMultipartFormField(String s)
Returns null as this is not a multi part form. |
javax.servlet.http.HttpSession |
getSession()
Get the HttpSession . |
| Methods inherited from class org.melati.template.velocity.VelocityTemplateContext |
|---|
get, getContext, put, setPassbackExceptionHandling, setPropagateExceptionHandling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.melati.template.TemplateContext |
|---|
get, getContext, put, setPassbackExceptionHandling, setPropagateExceptionHandling |
| Field Detail |
|---|
public static final String REQUEST
public static final String RESPONSE
public static final String FORM
| Constructor Detail |
|---|
public VelocityServletTemplateContext(org.apache.velocity.VelocityContext vc)
vc - context containing RESPONSE and REQUEST| Method Detail |
|---|
public String getFormField(String s)
getFormField in interface ServletTemplateContexts - the field's name
ServletTemplateContext.getFormField(java.lang.String)public MultipartFormField getMultipartFormField(String s)
getMultipartFormField in interface ServletTemplateContexts - the field's name
ServletTemplateContext.getMultipartFormField(java.lang.String)public javax.servlet.http.HttpSession getSession()
HttpSession .
getSession in interface ServletTemplateContextServletTemplateContext.getSession()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||