Examples of StripesJspException


Examples of net.sourceforge.stripes.exception.StripesJspException

    public LayoutContext getContext() throws StripesJspException {
        if (context == null) {
            context = LayoutContext.lookup(pageContext);

            if (context == null || getLayoutParent() != null) {
                throw new StripesJspException("The JSP page " + getCurrentPagePath()
                        + " contains a layout-definition tag and was invoked directly. "
                        + "A layout-definition can only be invoked by a page that contains "
                        + "a layout-render tag.");
            }
        }
View Full Code Here

Examples of net.sourceforge.stripes.exception.StripesJspException

                    context.getOut().setSilent(true, pageContext);
                    context.doInclude(pageContext, getName());
                    log.debug("End layout exec in ", context.getDefinitionPage());
                }
                catch (Exception e) {
                    throw new StripesJspException(
                        "An exception was raised while invoking a layout. The layout used was " +
                        "'" + getName() + "'. The following information was supplied to the render " +
                        "tag: " + context.toString(), e);
                }

                // Check that the layout actually got rendered as some containers will
                // just quietly ignore includes of non-existent pages!
                if (!context.isRendered()) {
                    throw new StripesJspException(
                            "Attempt made to render a layout that does not exist. The layout name " +
                            "provided was '" + getName() + "'. Please check that a JSP/view exists at " +
                            "that location within your web application."
                        );
                }
View Full Code Here

Examples of net.sourceforge.stripes.exception.StripesJspException

    public void setBeanclass(Object beanclass) throws StripesJspException {
        this.beanclass = beanclass;

        String url = getActionBeanUrl(beanclass);
        if (url == null) {
            throw new StripesJspException("Could not determine action from 'beanclass' supplied. " +
                "The value supplied was '" + beanclass + "'. Please ensure that this bean type " +
                "exists and is in the classpath. If you are developing a page and the ActionBean " +
                "does not yet exist, consider using the 'action' attribute instead for now.");
        }
        else {
View Full Code Here

Examples of net.sourceforge.stripes.exception.StripesJspException

     * doEndTag.
     */
    @Override
    public int doStartTag() throws JspException {
        if (this.actionWithoutContext == null) {
            throw new StripesJspException("The form tag attributes 'beanClass' and 'action' "
                    + "are both null. One of the two must be supplied to determine which "
                    + "action bean should handle the form submission.");
        }
        getTagStack().push(this);
        urlBuilder = new UrlBuilder(pageContext.getRequest().getLocale(), getAction(), false)
View Full Code Here

Examples of net.sourceforge.stripes.exception.StripesJspException

            this.fieldsPresent.clear();
            this.focusSet = false;
            this.urlBuilder = null;
        }
        catch (IOException ioe) {
            throw new StripesJspException("IOException in FormTag.doEndTag().", ioe);
        }

        return EVAL_PAGE;
    }
View Full Code Here

Examples of net.sourceforge.stripes.exception.StripesJspException

        try {
            return (R) this.pageContext.getExpressionEvaluator().
                evaluate(expression, resultType, this.pageContext.getVariableResolver(), null);
        }
        catch (javax.servlet.jsp.el.ELException ele) {
            throw new StripesJspException
                ("Could not evaluate EL expression  [" + expression + "] with result type [" +
                    resultType.getName() + "] in tag class of type: " + getClass().getName(), ele);
        }
    }
View Full Code Here

Examples of net.sourceforge.stripes.exception.StripesJspException

    protected String getPreferredBaseUrl() throws StripesJspException {
        // If the beanclass attribute was supplied we'll prefer that to an href
        if (this.beanclass != null) {
            String beanHref = getActionBeanUrl(beanclass);
            if (beanHref == null) {
                throw new StripesJspException("The value supplied for the 'beanclass' attribute "
                        + "does not represent a valid ActionBean. The value supplied was '" +
                        this.beanclass + "'. If you're prototyping, or your bean isn't ready yet " +
                        "and you want this exception to go away, just use 'href' for now instead.");
            }
            else {
View Full Code Here

Examples of net.sourceforge.stripes.exception.StripesJspException

                        if (t2 instanceof JspException)
                            throw (JspException) t2;
                        if (t2 instanceof RuntimeException)
                            throw (RuntimeException) t2;
                        else
                            throw new StripesJspException(t2);
                    }
                }
                finally {
                    hidden.doFinally();
                }
View Full Code Here

Examples of net.sourceforge.stripes.exception.StripesJspException

                }
                addEntry(item, label, value, group);
            }
        }
        catch (ExpressionException ee) {
            throw new StripesJspException("A problem occurred generating an options-collection. " +
                "Most likely either [" + labelProperty + "] or ["+ valueProperty + "] is not a " +
                "valid property of the beans in the collection: " + this.collection, ee);
        }

        return SKIP_BODY;
View Full Code Here

Examples of net.sourceforge.stripes.exception.StripesJspException

                /** Catch whatever comes back out of the doCatch() method and deal with it */
                try { tag.doCatch(t); }
                catch (Throwable t2) {
                    if (t2 instanceof JspException) throw (JspException) t2;
                    if (t2 instanceof RuntimeException) throw (RuntimeException) t2;
                    else throw new StripesJspException(t2);
                }
            }
            finally {
                tag.doFinally();
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.