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

java.lang.Objectorg.melati.template.webmacro.WebmacroTemplateContext
org.melati.template.webmacro.WebmacroServletTemplateContext
public class WebmacroServletTemplateContext
Implements a template context for Melati using Webmacro.
| Field Summary | |
|---|---|
org.webmacro.servlet.WebContext |
webContext
The webcontext. |
| Constructor Summary | |
|---|---|
WebmacroServletTemplateContext(org.webmacro.Context wc)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getFormField(String k)
Returns null if not present, empty string if empty. |
MultipartFormField |
getMultipartFormField(String s)
Throws an exception as this is not a multi part form. |
javax.servlet.http.HttpSession |
getSession()
Get the HttpSession . |
| Methods inherited from class org.melati.template.webmacro.WebmacroTemplateContext |
|---|
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 org.webmacro.servlet.WebContext webContext
| Constructor Detail |
|---|
public WebmacroServletTemplateContext(org.webmacro.Context wc)
wc - WebMacro context| Method Detail |
|---|
public String getFormField(String k)
getFormField in interface ServletTemplateContextk - the field's name
org.melati.template.ServletTemplateContext#getForm(java.lang.String)public MultipartFormField getMultipartFormField(String s)
getMultipartFormField in interface ServletTemplateContexts - the field's name
org.melati.template.ServletTemplateContext#getMultipartForm(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 | |||||||||