Package net.sourceforge.stripes.exception

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


                /** 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

            }

            return EVAL_PAGE;
        }
        catch (IOException ioe) {
            throw new StripesJspException("Encountered an exception while trying to write to " +
                "the output from the stripes:label tag handler class, InputLabelTag.", ioe);
        }
    }
View Full Code Here

    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

            }

            return SKIP_BODY;
        }
        catch(Exception e) {
            throw new StripesJspException("Unabled to prepare ActionBean for JSP Usage",e);
        }
    }
View Full Code Here

     * @param beanclass the FQN of an ActionBean class, or a Class object for one.
     */
    public void setBeanclass(Object beanclass) throws StripesJspException {
        String url = getActionBeanUrl(beanclass);
        if (url == null) {
            throw new StripesJspException("The 'beanclass' attribute provided could not be " +
                "used to identify a valid and configured ActionBean. The value supplied was: " +
                beanclass);
        }
        else {
            this.binding = url;
View Full Code Here

        }
        // Else just write it out to the page
        else {
            try { getPageContext().getOut().write(url); }
            catch (IOException ioe) {
                throw new StripesJspException("IOException while trying to write url to page.", ioe);
            }
        }

        clearParameters();
View Full Code Here

                        /** Catch whatever comes back out of the doCatch() method and deal with it */
                        try { hidden.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 {
                        hidden.doFinally();
                    }
View Full Code Here

        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

    @Override
    public int doEndInputTag() throws JspException {
        // Find our mandatory enclosing select tag
        InputSelectTag selectTag = getParentTag(InputSelectTag.class);
        if (selectTag == null) {
            throw new StripesJspException
                    ("Option tags must always be contained inside a select tag.");
        }

        // Decide if the label will come from the body of the option, of the label attr
        String actualLabel = getBodyContentAsString();
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.exception.StripesJspException

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.