Code example for URLClassLoader

Methods: loadClass

0
    public Class<?> load() throws JasperException {
        try { 
            getJspLoader(); 
             
            String name = getFQCN();
            servletClass = jspLoader.loadClass(name);
        } catch (ClassNotFoundException cex) {
            throw new JasperException(Localizer.getMessage("jsp.error.unable.load"), 
                                      cex);
        } catch (Exception ex) {
            throw new JasperException(Localizer.getMessage("jsp.error.unable.compile"), 
                                      ex);
        } 
        removed = 0;
        return servletClass;
    } 
 
    public String getFQCN() {
        String name;
        if (isTagFile()) { 
            name = tagInfo.getTagClassName();