FileDocCategorySizeDatePackage
VelocityStrutsUtil.javaAPI DocExample2266Mon Jul 23 13:26:56 BST 2007org.apache.struts2.util

VelocityStrutsUtil

public class VelocityStrutsUtil extends StrutsUtil
Struts velocity related util.

Fields Summary
private org.apache.velocity.context.Context
ctx
private org.apache.velocity.app.VelocityEngine
velocityEngine
Constructors Summary
public VelocityStrutsUtil(org.apache.velocity.app.VelocityEngine engine, org.apache.velocity.context.Context ctx, com.opensymphony.xwork2.util.ValueStack stack, HttpServletRequest request, HttpServletResponse response)

        super(stack, request, response);
        this.ctx = ctx;
        this.velocityEngine = engine;
    
Methods Summary
public java.lang.Stringevaluate(java.lang.String expression)

        CharArrayWriter writer = new CharArrayWriter();
        velocityEngine.evaluate(ctx, writer, "Error parsing " + expression, expression);

        return writer.toString();