Package cambridge.runtime

Examples of cambridge.runtime.ExpressionContext


    }

    @Test
    public void testParseVariable() throws Exception
    {
        ExpressionContext context = language.createNewContext();
        context.put("name", "Cambridge");
        Expression expression = language.parse("#name", 1, 1);

        String name = expression.asString(context);
        assertEquals(name, "Cambridge");
    }
View Full Code Here


        Locale locale = RequestContextUtils.getLocale(request);

        TemplateFactory templateFactory = cambridgeConfig.getTemplateFactory(url);
        Template template = templateFactory.createTemplate(locale);
        ExpressionContext context = template.getContext();
        context.setVariables(model);
        template.printTo(response.getWriter());
    }
View Full Code Here

TOP

Related Classes of cambridge.runtime.ExpressionContext

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.