Class WebWorkUtil

java.lang.Object
webwork.view.velocity.WebWorkUtil

public final class WebWorkUtil extends Object
WebWork utility methods for Velocity templates
Version:
$Revision: 1.12 $
Author:
Rickard Öberg (rickard@dreambean.com)
  • Constructor Details

    • WebWorkUtil

      public WebWorkUtil(org.apache.velocity.context.Context ctx)
  • Method Details

    • action

      public Action action(Object aName) throws Exception
      Throws:
      Exception
    • execute

      public String execute(Action anAction) throws Exception
      Throws:
      Exception
    • bean

      public Object bean(Object aName) throws Exception
      Throws:
      Exception
    • include

      public String include(Object aName, javax.servlet.ServletRequest aRequest, javax.servlet.ServletResponse aResponse) throws Exception
      Throws:
      Exception
    • toLong

      public long toLong(int anInt)
    • toLong

      public long toLong(String aLong)
    • toInt

      public int toInt(long aLong)
    • toString

      public String toString(long aLong)
    • toString

      public String toString(int anInt)
    • 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