Package org.apache.jasper

Examples of org.apache.jasper.JasperException


    {
  try {
            Method method = getWriteMethod(bean.getClass(), prop);
      method.invoke(bean, new Object[] { new Boolean(value) });
  } catch (Exception ex) {
      throw new JasperException(ex);
 
    }
View Full Code Here


      break;
        }
    }
            } else {       
                // just in case introspection silently fails.
                throw new JasperException(
                    Localizer.getMessage("jsp.error.beans.nobeaninfo",
           beanClass.getName()));
            }
        } catch (Exception ex) {
            throw new JasperException (ex);
        }
        if (method == null) {
            if (type == null) {
    throw new JasperException(
                        Localizer.getMessage("jsp.error.beans.noproperty",
               prop,
               beanClass.getName()));
            } else {
    throw new JasperException(
        Localizer.getMessage("jsp.error.beans.nomethod.setproperty",
           prop,
           type.getName(),
           beanClass.getName()));
            }
View Full Code Here

                        break;
                    }
                }
            } else {       
                // just in case introspection silently fails.
    throw new JasperException(
                    Localizer.getMessage("jsp.error.beans.nobeaninfo",
           beanClass.getName()));
      }
  } catch (Exception ex) {
      throw new JasperException (ex);
  }
        if (method == null) {
            if (type == null) {
    throw new JasperException(
                    Localizer.getMessage("jsp.error.beans.noproperty", prop,
           beanClass.getName()));
            } else {
    throw new JasperException(
                    Localizer.getMessage("jsp.error.beans.nomethod", prop,
           beanClass.getName()));
            }
        }
View Full Code Here

  try {
      PropertyEditor pe = (PropertyEditor)propertyEditorClass.newInstance();
      pe.setAsText(attrValue);
      return pe.getValue();
  } catch (Exception ex) {
      throw new JasperException(
                Localizer.getMessage("jsp.error.beans.property.conversion",
             attrValue, attrClass.getName(), attrName,
             ex.getMessage()));
  }
    }
View Full Code Here

      } else {
    throw new IllegalArgumentException(
                    Localizer.getMessage("jsp.error.beans.propertyeditor.notregistered"));
      }
  } catch (IllegalArgumentException ex) {
      throw new JasperException(
                Localizer.getMessage("jsp.error.beans.property.conversion",
             attrValue, attrClass.getName(), attrName,
             ex.getMessage()));
  }
    }
View Full Code Here

        } else if (n instanceof Node.NamedAttribute) {
            ci = ((Node.NamedAttribute)n).getChildInfo();
        } else {
            // Cannot access err since this method is static, but at
            // least flag an error.
            throw new JasperException("Unexpected Node Type");
            //err.getString(
            //    "jsp.error.internal.unexpected_node_type" ) );
        }

        if (ci.hasUseBean()) {
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

TOP

Related Classes of org.apache.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.