Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » jasper » runtime » [javadoc | source]
org.apache.jasper.runtime
public class: JspLoader [javadoc | source]
java.lang.Object
   java.lang.ClassLoader
      org.apache.jasper.runtime.JspLoader
This is a class loader that loads JSP files as though they were Java classes. It calls the compiler to compile the JSP file into a servlet and then loads the generated class. This code is quite fragile and needs careful treatment/handling/revisiting. I know this doesn't work very well right now for: (a) inner classes (b) does not work at all for tag handlers that have inner classes; but that is likely to change with the new JSP PR2 spec.
Field Summary
 Hashtable loadedJSPs     
 ClassLoader parent     
 ServletContext context     
 Options options     
Constructor:
 JspLoader(ServletContext context,
    ClassLoader cl,
    Options options) 
Method from org.apache.jasper.runtime.JspLoader Summary:
addJar,   findClass,   getClassPath,   getJspServletClass,   loadClass,   loadJSP
Methods from java.lang.ClassLoader:
clearAssertionStatus,   getParent,   getResource,   getResourceAsStream,   getResources,   getSystemClassLoader,   getSystemResource,   getSystemResourceAsStream,   getSystemResources,   loadClass,   setClassAssertionStatus,   setDefaultAssertionStatus,   setPackageAssertionStatus
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jasper.runtime.JspLoader Detail:
 public  void addJar(String jarFileName) throws IOException 
 protected Class findClass(String className) throws ClassNotFoundException 
 public String getClassPath() 
 public Class getJspServletClass(String name) 
 protected synchronized Class loadClass(String name,
    boolean resolve) throws ClassNotFoundException 
 public boolean loadJSP(String name,
    String classpath,
    boolean isErrorPage,
    HttpServletRequest req,
    HttpServletResponse res) throws JasperException, FileNotFoundException