com.opensymphony.webwork.util
Class FreemarkerWebWorkUtil

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

public class FreemarkerWebWorkUtil
extends WebWorkUtil

Author:
CameronBraid

Field Summary
 
Fields inherited from class com.opensymphony.webwork.util.WebWorkUtil
classes, log, ognl, request, response, stack
 
Constructor Summary
FreemarkerWebWorkUtil(com.opensymphony.xwork.util.OgnlValueStack stack, HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
 String buildUrl(String url)
           
 Object findValue(String expression, String className)
           
 List makeSelectList(String selectedList, String list, String listKey, String listValue)
          the selectedList objects are matched to the list.listValue

listKey and listValue are optional, and if not provided, the list item is used

 
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

FreemarkerWebWorkUtil

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

buildUrl

public String buildUrl(String url)

findValue

public Object findValue(String expression,
                        String className)
                 throws ClassNotFoundException
Throws:
ClassNotFoundException

makeSelectList

public List makeSelectList(String selectedList,
                           String list,
                           String listKey,
                           String listValue)
the selectedList objects are matched to the list.listValue

listKey and listValue are optional, and if not provided, the list item is used

Parameters:
selectedList - the name of the action property that contains the list of selected items or single item if its not an array or list
list - the name of the action property that contains the list of selectable items
listKey - an ognl expression that is exaluated relative to the list item to use as the key of the ListEntry
listValue - an ognl expression that is exaluated relative to the list item to use as the value of the ListEntry
Returns:
a List of ListEntry

WebWork Project Page