Loads the compiled servlet class using the JSP class loader. @return the loaded servlet class @throws JasperException If the class cannot be loaded
()
| 776 | * @throws JasperException If the class cannot be loaded |
| 777 | */ |
| 778 | public Class<?> load() throws JasperException { |
| 779 | try { |
| 780 | getJspLoader(); |
| 781 | |
| 782 | String name = getFQCN(); |
| 783 | servletClass = jspLoader.loadClass(name); |
| 784 | } catch (ClassNotFoundException cex) { |
| 785 | throw new JasperException(Localizer.getMessage("jsp.error.unable.load"), cex); |
| 786 | } catch (Exception e) { |
| 787 | throw new JasperException(Localizer.getMessage("jsp.error.unable.compile"), e); |
| 788 | } |
| 789 | removed = false; |
| 790 | return servletClass; |
| 791 | } |
| 792 | |
| 793 | /** |
| 794 | * Returns the fully qualified class name of the generated servlet or tag handler. |
nothing calls this directly
no test coverage detected