1 7 package com.inversoft.verge.mvc.view.jsp.form; 8 9 10 import javax.servlet.jsp.JspException ; 11 12 import org.apache.log4j.Logger; 13 14 import com.inversoft.verge.mvc.controller.form.config.ActionConfig; 15 16 17 24 public class SubmitTag extends com.inversoft.verge.mvc.view.jsp.html.SubmitTag { 25 26 29 private static final Logger logger = Logger.getLogger(SubmitTag.class); 30 31 32 37 public void initialize() throws JspException { 38 39 super.initialize(); 41 42 FormTag form = FormHelper.getFormTag(super.getFormParent()); 43 ActionConfig actionConfig = form.getConfig().getActionConfig(localAction); 44 if (actionConfig == null) { 45 logger.error("Invalid action: " + getAction() + " for form: " + 46 form.getConfig().getName()); 47 throw new JspException ("Invalid action: " + getAction() + " for form: " + 48 form.getConfig().getName()); 49 } 50 } 51 52 57 public int doEndTag() throws JspException { 58 super.doEndTag(); 59 FormHelper.outputControllerExtra(localName, localAction, pageContext); 60 return EVAL_PAGE; 61 } 62 } | Popular Tags |