1 21 22 package org.opensubsystems.patterns.scrollabletable.www; 23 24 import javax.servlet.jsp.JspException ; 25 26 import org.opensubsystems.core.www.PageElementCacheTag; 27 import org.opensubsystems.core.www.TagUtils; 28 29 39 public class ScrollableTableIdTag extends PageElementCacheTag 40 { 41 43 46 private static final long serialVersionUID = -2351112795044755422L; 47 48 50 53 public ScrollableTableIdTag() 54 { 55 } 56 57 59 62 public int doStartTag( 63 ) throws JspException 64 { 65 String strCachedTableId = getCachedContent(ScrollableTableTag.ACTIVE_SCROLLABLE_TABLE_ID, 66 false).trim(); 67 if (strCachedTableId.length() == 0) 68 { 69 strCachedTableId = ScrollableTableTag.SCROLLABLE_TABLE_PREFIX; 70 } 71 72 TagUtils.write(pageContext, strCachedTableId); 73 74 return (EVAL_BODY_INCLUDE); 75 } 76 77 80 public int doEndTag( 81 ) throws JspException 82 { 83 return (EVAL_PAGE); 84 } 85 } 86 | Popular Tags |