1 21 22 package org.opensubsystems.patterns.dialoglayout.www; 23 24 import javax.servlet.jsp.JspException ; 25 import javax.servlet.jsp.tagext.BodyContent ; 26 27 import org.opensubsystems.core.www.BlockElementTag; 28 import org.opensubsystems.core.www.TagUtils; 29 30 42 public abstract class CachedRow extends BlockElementTag 43 { 44 46 52 public CachedRow( 53 String strCssclass, 54 String strType 55 ) 56 { 57 super(strCssclass, strType); 58 } 59 60 62 65 public int doStartTag( 66 ) throws JspException 67 { 68 super.doStartTag(); 69 return (EVAL_BODY_BUFFERED); 70 } 71 72 75 public int doEndTag( 76 ) throws JspException 77 { 78 BodyContent content = getBodyContent(); 81 String strContent = content.getString(); 82 83 if ((m_strId != null) && (m_strId.length() > 0)) 84 { 85 if (strContent != null && strContent.length() > 0) 86 { 87 strContent = strContent.replaceAll(DialogUnknownRowTag.UNKNOWN_ROW_ID, 88 m_strId); 89 } 90 } 91 92 TagUtils.write(pageContext, strContent); 93 94 super.doEndTag(); 95 96 return (EVAL_PAGE); 97 } 98 } 99 | Popular Tags |