com.opensymphony.webwork.util
Class VelocityWebWorkUtil

java.lang.Object
  extended bycom.opensymphony.webwork.util.WebWorkUtil
      extended bycom.opensymphony.webwork.util.VelocityWebWorkUtil

public class VelocityWebWorkUtil
extends WebWorkUtil

Author:
CameronBraid

Field Summary
 
Fields inherited from class com.opensymphony.webwork.util.WebWorkUtil
classes, log, ognl, request, response, stack
 
Constructor Summary
VelocityWebWorkUtil(org.apache.velocity.context.Context ctx, com.opensymphony.xwork.util.OgnlValueStack stack, HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 String evaluate(String expression)
           
 String htmlEncode(Object obj)
           
 int toInt(long aLong)
           
 long toLong(int anInt)
           
 long toLong(String aLong)
           
 String toString(int anInt)
           
 String toString(long aLong)
           
 
Methods inherited from class com.opensymphony.webwork.util.WebWorkUtil
bean, findString, include, include, textToHtml, urlEncode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityWebWorkUtil

public VelocityWebWorkUtil(org.apache.velocity.context.Context ctx,
                           com.opensymphony.xwork.util.OgnlValueStack stack,
                           HttpServletRequest request,
                           HttpServletResponse response)
Method Detail

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

htmlEncode

public String htmlEncode(Object obj)

toInt

public int toInt(long aLong)

toLong

public long toLong(int anInt)

toLong

public long toLong(String aLong)

toString

public String toString(long aLong)

toString

public String toString(int anInt)

WebWork Project Page