1 25 package org.ofbiz.webapp.taglib; 26 27 import javax.servlet.jsp.JspException ; 28 import javax.servlet.jsp.tagext.TagSupport ; 29 30 import org.ofbiz.base.util.Debug; 31 import org.ofbiz.base.util.UtilJ2eeCompat; 32 33 41 public class I18nMessageArgumentTag extends TagSupport { 42 43 public static final String module = I18nMessageArgumentTag.class.getName(); 44 45 public void setValue(Object argumentValue) throws JspException { 46 try { 47 I18nMessageTag messageTag = (I18nMessageTag) this.getParent(); 48 49 messageTag.addArgument(argumentValue); 50 } catch (Exception e) { 51 if (UtilJ2eeCompat.useNestedJspException(pageContext.getServletContext())) { 52 throw new JspException (e.getMessage(), e); 53 } else { 54 Debug.logError(e, "Server does not support nested exceptions, here is the exception", module); 55 throw new JspException (e.toString()); 56 } 57 } 58 } 59 } 60 | Popular Tags |