Package javax.servlet.jsp.el

Examples of javax.servlet.jsp.el.VariableResolver


    public Boolean evalCond(final Context ctx, final String expr)
    throws SCXMLExpressionException {
        if (expr == null) {
            return null;
        }
        VariableResolver vr = null;
        if (ctx instanceof VariableResolver) {
            vr = (VariableResolver) ctx;
        } else {
            vr = new ContextWrapper(ctx);
        }
View Full Code Here


    public Node evalLocation(final Context ctx, final String expr)
    throws SCXMLExpressionException {
        if (expr == null) {
            return null;
        }
        VariableResolver vr = null;
        if (ctx instanceof VariableResolver) {
            vr = (VariableResolver) ctx;
        } else {
            vr = new ContextWrapper(ctx);
        }
View Full Code Here

    public void actionPerformed(ActionEvent ev) {
      try {
        StaticFunctionMapper functionMapper = StaticFunctionMapper.getDefault();
        ExpressionEvaluator eval = new ExpressionEvaluatorImpl();
        VariableResolver resolver = new DefaultVariables(uriText.getText(), null, null);
        resultText.setText((String) eval.evaluate(elText.getText(), String.class, resolver, functionMapper));
      } catch (ELException e) {
        ExceptionDialog.show(TestingTool.this, e);
      }
    }
View Full Code Here

     * @return The XML PI filter.
     */
    private PreprocessingFilter createPIHandler(EntityResolver resolver, XMLReader reader) {
        PreprocessingFilter filter = new PreprocessingFilter(reader);
        ProcessingInstructionHandler resolvingHandler = new ExpressionHandler(
                new VariableResolver() {

                    public Object resolveVariable(String name)
                            throws ELException {
                        if ("date".equals(name)) {
                            return DateFormat.getDateInstance(
View Full Code Here

        body.invoke(bodyExpansion);
        String expansion = bodyExpansion.getBuffer().toString();
        String expression = expansion.replaceAll("#\\{", "\\$\\{");
       
        PageContext pageContext = (PageContext) getJspContext();       
        VariableResolver varResolver = getJspContext().getVariableResolver();
        JspWriter out = pageContext.getOut();
        try {
          // Rahul - 9/13/04 - EL functions are not supported.
          // Since this is in the body of a <vxml:prompt> element, the
          // result needs to be a String
View Full Code Here

     * attribute with a matching name.
     */
    public VariableResolver getVariableResolver() {
        final PageContext ctx = this;

        return new VariableResolver() {
            public Object resolveVariable(String name) throws ELException {
                return ctx.findAttribute(name);
            }
        };
    }
View Full Code Here

     * attribute with a matching name.
     */
    public VariableResolver getVariableResolver() {
        final PageContext ctx = this;

        return new VariableResolver() {
            public Object resolveVariable(String name) throws ELException {
                return ctx.findAttribute(name);
            }
        };
    }
View Full Code Here

     * @return The XML PI filter.
     */
    private PreprocessingFilter createPIHandler(EntityResolver resolver, XMLReader reader) {
        PreprocessingFilter filter = new PreprocessingFilter(reader);
        ProcessingInstructionHandler resolvingHandler = new ExpressionHandler(
                new VariableResolver() {

                    public Object resolveVariable(String name)
                            throws ELException {
                        if ("date".equals(name)) {
                            return DateFormat.getDateInstance(
View Full Code Here

                    Result result = new StreamResult(targetFile.getAbsolutePath());
          XMLReader reader = factory.newSAXParser().getXMLReader();
          reader.setEntityResolver(resolver);
          PreprocessingFilter filter = new PreprocessingFilter(reader);
          ProcessingInstructionHandler resolvingHandler = new ExpressionHandler(
              new VariableResolver() {

                public Object resolveVariable(String name)
                    throws ELException {
                  if ("date".equals(name)) {
                    return DateFormat.getDateInstance(
View Full Code Here

                Result result = new StreamResult(targetFile);
                XMLReader reader = factory.newSAXParser().getXMLReader();
                reader.setEntityResolver(resolver);
                PreprocessingFilter filter = new PreprocessingFilter(reader);
                ProcessingInstructionHandler resolvingHandler = new ExpressionHandler(
                        new VariableResolver() {

                            private Map tree = ExpressionUtils.createTree(getMavenProject().getProperties());

                            public Object resolveVariable(String name)
                                    throws ELException {
View Full Code Here

TOP

Related Classes of javax.servlet.jsp.el.VariableResolver

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.