| javax.servlet.http.HttpServlet org.apache.commons.jelly.servlet.JellyServlet
JellyServlet | public class JellyServlet extends HttpServlet (Code) | | Servlet for handling display of Jelly-fied XML files. Modelled after VelocityServlet.
author: Kelvin Tan version: $Revision: 155420 $ |
Field Summary | |
final public static String | REQUEST The HTTP request object context key. | final public static String | RESPONSE The HTTP response object context key. |
Method Summary | |
protected JellyContext | createContext(HttpServletRequest req, HttpServletResponse res) | protected void | doGet(HttpServletRequest request, HttpServletResponse response) | protected void | doPost(HttpServletRequest request, HttpServletResponse response) | protected void | doRequest(HttpServletRequest req, HttpServletResponse res) | protected void | error(HttpServletRequest request, HttpServletResponse response, Exception cause) Invoked when there is an error thrown in any part of doRequest() processing. | protected URL | getScript(HttpServletRequest req)
Either use the query parameter "script", or the URI itself
to denote the script to run. | protected void | runScript(URL script, JellyContext context, HttpServletRequest req, HttpServletResponse res) |
REQUEST | final public static String REQUEST(Code) | | The HTTP request object context key.
|
RESPONSE | final public static String RESPONSE(Code) | | The HTTP response object context key.
|
error | protected void error(HttpServletRequest request, HttpServletResponse response, Exception cause) throws ServletException, IOException(Code) | | Invoked when there is an error thrown in any part of doRequest() processing.
Default will send a simple HTML response indicating there was a problem.
Ripped from VelocityServlet.
Parameters: request - original HttpServletRequest from servlet container. Parameters: response - HttpServletResponse object from servlet container. Parameters: cause - Exception that was thrown by some other part of process. |
getScript | protected URL getScript(HttpServletRequest req) throws MalformedURLException(Code) | |
Either use the query parameter "script", or the URI itself
to denote the script to run.
Example: script=index.jelly or http://localhost:8080/foo/index.jelly.
See Also: org.apache.velocity.servlet.VelocityServlet.getTemplate Parameters: req - throws: MalformedURLException - |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|