org.apache.jasper.servlet
public class JspServletWrapper extends Object
Constructor Summary | |
---|---|
JspServletWrapper(ServletConfig config, Options options, String jspUri, boolean isErrorPage, JspRuntimeContext rctxt) | |
JspServletWrapper(ServletContext servletContext, Options options, String tagFilePath, TagInfo tagInfo, JspRuntimeContext rctxt, URL tagFileJarUrl) |
Method Summary | |
---|---|
int | decTripCount() |
void | destroy() |
List | getDependants()
Get a list of files that the current page has source dependency on. |
JspCompilationContext | getJspEngineContext() |
long | getLastModificationTest() |
Servlet | getServlet() |
ServletContext | getServletContext() |
protected JasperException | handleJspException(Exception ex) Attempts to construct a JasperException that contains helpful information about what went wrong. |
int | incTripCount() |
boolean | isTagFile() |
Class | loadTagFile()
Compile (if needed) and load a tag file |
Class | loadTagFilePrototype()
Compile and load a prototype for the Tag file. |
void | service(HttpServletRequest request, HttpServletResponse response, boolean precompile) |
void | setCompilationException(JasperException je)
Sets the compilation exception for this JspServletWrapper.
|
void | setLastModificationTest(long lastModificationTest) |
void | setReload(boolean reload) |
void | setServletClassLastModifiedTime(long lastModified)
Sets the last-modified time of the servlet class file associated with
this JspServletWrapper.
|
Returns: Returns the lastModificationTest.
Attempts to construct a JasperException that contains helpful information about what went wrong. Uses the JSP compiler system to translate the line number in the generated servlet that originated the exception to a line number in the JSP. Then constructs an exception containing that information, and a snippet of the JSP to help debugging. Please see http://issues.apache.org/bugzilla/show_bug.cgi?id=37062 and http://www.tfenne.com/jasper/ for more details.
Parameters: ex the exception that was the cause of the problem.
Returns: a JasperException with more detailed information
Parameters: je The compilation exception
Parameters: lastModificationTest The lastModificationTest to set.
Parameters: lastModified Last-modified time of servlet class