com.opensymphony.webwork.util
Class WebWorkUtil

java.lang.Object
  extended bycom.opensymphony.webwork.util.WebWorkUtil
Direct Known Subclasses:
FreemarkerWebWorkUtil, VelocityWebWorkUtil

public class WebWorkUtil
extends Object

WebWork base utility class, for use in Velocity and Freemarker templates

Version:
$Revision: 1.14 $
Author:
Rickard ?????berg (rickard@dreambean.com), Cameron Braid

Field Summary
protected  Map classes
           
protected static org.apache.commons.logging.Log log
           
protected  OgnlTool ognl
           
protected  HttpServletRequest request
           
protected  HttpServletResponse response
           
protected  com.opensymphony.xwork.util.OgnlValueStack stack
           
 
Constructor Summary
WebWorkUtil(com.opensymphony.xwork.util.OgnlValueStack stack, HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 Object bean(Object aName)
           
 Object findString(String name)
           
 String include(Object aName)
           
 String include(Object aName, HttpServletRequest aRequest, HttpServletResponse aResponse)
          Deprecated. the request and response are stored in this util class, please use include(string)
 String textToHtml(String s)
           
 String urlEncode(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log

request

protected HttpServletRequest request

response

protected HttpServletResponse response

classes

protected Map classes

ognl

protected OgnlTool ognl

stack

protected com.opensymphony.xwork.util.OgnlValueStack stack
Constructor Detail

WebWorkUtil

public WebWorkUtil(com.opensymphony.xwork.util.OgnlValueStack stack,
                   HttpServletRequest request,
                   HttpServletResponse response)
Method Detail

bean

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

findString

public Object findString(String name)

include

public String include(Object aName)
               throws Exception
Throws:
Exception

include

public String include(Object aName,
                      HttpServletRequest aRequest,
                      HttpServletResponse aResponse)
               throws Exception
Deprecated. the request and response are stored in this util class, please use include(string)

Throws:
Exception

textToHtml

public String textToHtml(String s)

urlEncode

public String urlEncode(String s)

WebWork Project Page