org.apache.struts2

## Class JSPLoader

- java.lang.Object
- - org.apache.struts2.JSPLoader

-     public class JSPLoader
      extends Object

  Uses jasper to extract a JSP from the classpath to a file and compile it. The classpath used for compilation is built by finding all the jar files using the current class loader (Thread), plus directories.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JSPLoader()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected String` | `getJarUrl(Class clazz)`
    `javax.servlet.Servlet` | `load(String location)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JSPLoader

          public JSPLoader()

  - ### Method Detail

    - #### load

          public javax.servlet.Servlet load(String location)
                                     throws Exception

      Throws:
        `Exception`

    - #### getJarUrl

          protected String getJarUrl(Class clazz)

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.