Commits

savaki  committed 931e27b

implemented ParamTag for velocity. i thought i had done this before, but i guess i hadn't checked in. this falls into the category of another tag that was implemented for JSP's, but never got implemented for Velocity. (strong encouragement to finish up the MockPageContext :)

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

  • Participants
  • Parent commits 3026590

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/views/jsp/ParamTag.java

  */
 package com.opensymphony.webwork.views.jsp;
 
+import com.opensymphony.webwork.views.velocity.Renderer;
+
 import com.opensymphony.xwork.ActionContext;
 import com.opensymphony.xwork.util.OgnlValueStack;
 
+import org.apache.velocity.context.Context;
+
+import java.io.Writer;
+
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.tagext.TagSupport;
 
  * @author $Author$
  * @version $Revision$
  */
-public class ParamTag extends TagSupport {
+public class ParamTag extends TagSupport implements Renderer {
     //~ Instance fields ////////////////////////////////////////////////////////
 
     String name;
         this.name = null;
         this.value = null;
     }
+
+    public void render(Context context, Writer writer) throws Exception {
+        doStartTag();
+    }
 }