1 7 package com.inversoft.verge.mvc.view.jsp.actionflow; 8 9 10 import java.io.IOException ; 11 12 import javax.servlet.jsp.JspException ; 13 import javax.servlet.jsp.PageContext ; 14 15 import com.inversoft.verge.mvc.MVCConstants; 16 import com.inversoft.verge.mvc.controller.actionflow.ActionFlowMetaData; 17 import com.inversoft.verge.mvc.controller.actionflow.ActionFlowURLTools; 18 import com.inversoft.verge.mvc.view.HtmlViewToolkit; 19 20 21 30 public class ActionFlowHelper { 31 32 38 public static void outputControllerExtra(String name, String action, 39 PageContext pageContext, ActionFlowMetaData metaData) 40 throws JspException { 41 StringBuffer buf = new StringBuffer (); 42 String parameter = ActionFlowURLTools.generateSubmitParameter(name, 43 action, metaData.getEntry(), metaData.getExtraParams()); 44 HtmlViewToolkit.appendHiddenTag(buf, ActionFlowURLTools.SUBMIT_PARAMETER, 45 parameter); 46 47 try { 48 pageContext.getOut().print(buf.toString()); 49 } catch (IOException ioe) { 50 throw new JspException (ioe); 51 } 52 } 53 } | Popular Tags |