Package org.apache.struts2.jasper

Examples of org.apache.struts2.jasper.JasperException


    public Class getBeanType(String bean) throws JasperException {
        Class clazz = null;
        try {
            clazz = loader.loadClass((String) beanTypes.get(bean));
        } catch (ClassNotFoundException ex) {
            throw new JasperException(ex);
        }
        return clazz;
    }
View Full Code Here


            TagPlugin tagPlugin = null;
            try {
                Class pluginClass = Class.forName(pluginClassStr);
                tagPlugin = (TagPlugin) pluginClass.newInstance();
            } catch (Exception e) {
                throw new JasperException(e);
            }
            if (tagPlugin == null) {
                return;
            }
            tagPlugins.put(tagClass, tagPlugin);
View Full Code Here

            processWebDotXml();
            scanJars();
            processTldsInFileSystem("/WEB-INF/");
            initialized = true;
        } catch (Exception ex) {
            throw new JasperException(Localizer.getMessage(
                    "jsp.error.internal.tldinit", ex.getMessage()));
        }
    }
View Full Code Here

                        // ignore
                    }
                }
            }
            if (!ignore) {
                throw new JasperException(ex);
            }
        } finally {
            if (redeployMode) {
                // if in redeploy mode, always close the jar
                if (jarFile != null) {
View Full Code Here

    * @param errMsg Parse error message
    * @param exception Parse exception
    */
    public void jspError(String fname, int line, int column, String errMsg,
                         Exception ex) throws JasperException {
        throw new JasperException(fname + "(" + line + "," + column + ")"
                + " " + errMsg, ex);
    }
View Full Code Here

    *
    * @param errMsg Parse error message
    * @param exception Parse exception
    */
    public void jspError(String errMsg, Exception ex) throws JasperException {
        throw new JasperException(errMsg, ex);
    }
View Full Code Here

                buf.append("\n");
                buf.append(details[i].getErrorMessage());
            }
        }
        buf.append("\n\nStacktrace:");
        throw new JasperException(Localizer.getMessage("jsp.error.unable.compile") + ": " + buf);
    }
View Full Code Here

     * @param exception   Compilation exception
     */
    public void javacError(String errorReport, Exception exception)
            throws JasperException {

        throw new JasperException(
                Localizer.getMessage("jsp.error.unable.compile"), exception);
    }
View Full Code Here

        JspReader jspReader = null;
        try {
            jspReader = new JspReader(ctxt, absFileName, sourceEnc, jarFile,
                    err);
        } catch (FileNotFoundException ex) {
            throw new JasperException(ex);
        }
        jspReader.setSingleFile(true);
        Mark startMark = jspReader.mark();
        if (!isExternal) {
            jspReader.reset(startMark);
View Full Code Here

            DocumentBuilder builder = factory.newDocumentBuilder();
            builder.setEntityResolver(entityResolver);
            builder.setErrorHandler(errorHandler);
            document = builder.parse(is);
        } catch (ParserConfigurationException ex) {
            throw new JasperException
                    (Localizer.getMessage("jsp.error.parse.xml", uri), ex);
        } catch (SAXParseException ex) {
            throw new JasperException
                    (Localizer.getMessage("jsp.error.parse.xml.line",
                            uri,
                            Integer.toString(ex.getLineNumber()),
                            Integer.toString(ex.getColumnNumber())),
                            ex);
        } catch (SAXException sx) {
            throw new JasperException
                    (Localizer.getMessage("jsp.error.parse.xml", uri), sx);
        } catch (IOException io) {
            throw new JasperException
                    (Localizer.getMessage("jsp.error.parse.xml", uri), io);
        }

        // Convert the resulting document to a graph of TreeNodes
        return (convert(null, document.getDocumentElement()));
View Full Code Here

TOP

Related Classes of org.apache.struts2.jasper.JasperException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.