1 23 24 package org.dbforms.taglib; 25 26 import org.dbforms.util.Util; 27 28 29 30 36 public class DbPosTag extends DbBaseHandlerTag 37 implements javax.servlet.jsp.tagext.TryCatchFinally { 38 41 public void doCatch(Throwable t) throws Throwable { 42 throw t; 43 } 44 45 46 54 public int doEndTag() throws javax.servlet.jsp.JspException { 55 try { 56 StringBuffer tagBuf = new StringBuffer (); 57 tagBuf.append(getParentForm().getTable().getId()); 58 tagBuf.append("_"); 59 tagBuf.append(getParentForm().getPositionPath()); 60 pageContext.getOut() 61 .write(Util.decode(tagBuf.toString(), 62 pageContext.getRequest().getCharacterEncoding())); 63 } catch (java.io.IOException ioe) { 64 throw new javax.servlet.jsp.JspException ("IO Error: " 65 + ioe.getMessage()); 66 } 67 68 return EVAL_PAGE; 69 } 70 71 72 75 public void doFinally() { 76 super.doFinally(); 77 } 78 } 79 | Popular Tags |