public class ExtendletDspContext extends ServletDspContext
| Constructor and Description |
|---|
ExtendletDspContext(ExtendletContext webctx,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String path,
Writer out) |
| Modifier and Type | Method and Description |
|---|---|
String |
encodeURL(String uri)
Returns the encoded URL.
|
void |
include(String uri,
Map params)
Includes the specified URI and render the result to the specified
output.
|
getLocator, getOut, getRequest, getResponse, getServletContext, getVariableResolver, isIncluded, setContentType, setOutpublic ExtendletDspContext(ExtendletContext webctx, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String path, Writer out)
public String encodeURL(String uri) throws javax.servlet.ServletException, IOException
DspContextencodeURL in interface DspContextencodeURL in class ServletDspContexturi - it must be empty or starts with "/". It might contain
"*" for current browser code and Locale.javax.servlet.ServletExceptionIOExceptionpublic void include(String uri, Map params) throws javax.servlet.ServletException, IOException
DspContextinclude in interface DspContextinclude in class ServletDspContexturi - 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.ServletExceptionIOExceptionCopyright © 2022. All rights reserved.