Commits

Anonymous committed e97878e

WW-687: Freemarker - add method buildUrl to FreemakerWebworkUtil.

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@624573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 4a06d2b

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/util/FreemarkerWebWorkUtil.java

 package com.opensymphony.webwork.util;
 
 import com.opensymphony.xwork.util.OgnlValueStack;
+import com.opensymphony.webwork.views.util.UrlHelper;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
     //~ Methods ////////////////////////////////////////////////////////////////
 
+    public String buildUrl(String url) {
+        return UrlHelper.buildUrl(url, request, response, null);
+    }
+
     public Object findValue(String expression, String className) throws ClassNotFoundException {
         return stack.findValue(expression, Class.forName(className));
     }