|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DspContext
The context used with Interpreter.interpret(org.zkoss.web.servlet.dsp.DspContext, java.lang.String, java.lang.String, org.zkoss.xel.XelContext).
Interpreter| Method Summary | |
|---|---|
String |
encodeURL(String uri)
Returns the encoded URL. |
org.zkoss.util.resource.Locator |
getLocator()
Returns the locator for loading resources, such as taglib. |
void |
include(String uri,
Map params)
Includes the specified URI and render the result to the specified output. |
boolean |
isIncluded()
Returns whether this page is included. |
void |
setContentType(String ctype)
Sets the content type of the output. |
void |
setOut(Writer out)
Changes the writer of this context to the specified one. |
| Methods inherited from interface org.zkoss.web.servlet.xel.RequestContext |
|---|
getOut, getRequest, getResponse, getServletContext, getVariableResolver |
| Method Detail |
|---|
org.zkoss.util.resource.Locator getLocator()
To load the resource from a web application, use
ServletContextLocator
To load the resource from class path, use
org.zkoss.util.resource.Resources.getDefault().
void setContentType(String ctype)
String encodeURL(String uri)
throws javax.servlet.ServletException,
IOException
uri - it must be empty or starts with "/". It might contain
"*" for current browser code and Locale.
javax.servlet.ServletException
IOException
void include(String uri,
Map params)
throws javax.servlet.ServletException,
IOException
uri - the URI to include. It is OK to relevant (without leading
'/'). If starts with "/", the context path of request is assumed.
To reference to foreign context, use "~ctx/" where ctx is the
context path of the foreign context (without leading '/').params - a map of parameters, or null to ignore.
The map is passed thru the request attribute called arg.
javax.servlet.ServletException
IOExceptionboolean isIncluded()
void setOut(Writer out)
out - the new writer. If null, it is restored to
the default one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||