Package org.apache.struts2.jasper

Examples of org.apache.struts2.jasper.JasperException


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


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

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

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

            throws 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

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.