Class VelocityStrutsUtil

java.lang.Object
org.apache.struts2.util.StrutsUtil
org.apache.struts2.views.velocity.VelocityStrutsUtil

public class VelocityStrutsUtil extends org.apache.struts2.util.StrutsUtil
Struts velocity related util.
  • Field Summary

    Fields inherited from class org.apache.struts2.util.StrutsUtil

    classes, LOG, request, response, stack
  • Constructor Summary

    Constructors
    Constructor
    Description
    VelocityStrutsUtil(org.apache.velocity.app.VelocityEngine engine, org.apache.velocity.context.Context ctx, com.opensymphony.xwork2.util.ValueStack stack, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(String expression)
     

    Methods inherited from class org.apache.struts2.util.StrutsUtil

    bean, buildUrl, findString, findValue, findValue, getContext, getText, include, isTrue, makeSelectList, toInt, toLong, toLong, toString, toString, toStringSafe, translateVariables, urlEncode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VelocityStrutsUtil

      public VelocityStrutsUtil(org.apache.velocity.app.VelocityEngine engine, org.apache.velocity.context.Context ctx, com.opensymphony.xwork2.util.ValueStack stack, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
  • Method Details

    • evaluate

      public String evaluate(String expression) throws IOException, org.apache.velocity.exception.ResourceNotFoundException, org.apache.velocity.exception.MethodInvocationException, org.apache.velocity.exception.ParseErrorException
      Throws:
      IOException
      org.apache.velocity.exception.ResourceNotFoundException
      org.apache.velocity.exception.MethodInvocationException
      org.apache.velocity.exception.ParseErrorException