package net.sourceforge.stripes.tag; import java.io.IOException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import net.sourceforge.stripes.util.Log; public class ValidInputTagUtil { private static final Log LOG = Log.getInstance(ValidInputTagUtil.class); protected static void writeSingletonTag(InputTagSupport inputTag, JspWriter writer, String tag) throws JspException { try { writer.print("<"); writer.print(tag); inputTag.writeAttributes(writer); writer.print(">"); } catch (IOException ioe) { JspException jspe = new JspException( "IOException encountered while writing singleton tag <" + tag + "> to the JspWriter.", ioe); LOG.warn(jspe); throw jspe; } } }