1 21 22 package org.opensubsystems.patterns.dialoglayout.www; 23 24 import javax.servlet.http.HttpServletRequest ; 25 import javax.servlet.jsp.JspException ; 26 27 import org.opensubsystems.core.www.PageElementCacheTag; 28 29 42 public class DynamicListInitTag extends PageElementCacheTag 43 { 44 46 49 private static final long serialVersionUID = -9072162485930908387L; 50 51 53 56 public DynamicListInitTag() 57 { 58 super(); 59 } 60 61 63 66 public int doStartTag( 67 ) throws JspException 68 { 69 String contextpath; 70 StringBuffer sbBuffer = new StringBuffer (); 71 72 contextpath = ((HttpServletRequest )pageContext.getRequest()).getContextPath(); 73 74 80 sbBuffer.append("<link HREF=\""); 81 sbBuffer.append(contextpath); 82 sbBuffer.append("/patterns/css/dynamiclist.css\" rel=\"StyleSheet\"" + 83 " type=\"text/css\" media=\"screen\">"); 84 cache(PageElementCacheTag.CSS_ELEMENT, sbBuffer.toString()); 85 86 sbBuffer.delete(0, sbBuffer.length()); 87 sbBuffer.append("<script type=\"text/javascript\" language=\"JavaScript\" SRC=\""); 88 sbBuffer.append(contextpath); 89 sbBuffer.append("/patterns/js/dynamiclist.js\"></script>"); 90 cache(PageElementCacheTag.JS_ELEMENT, sbBuffer.toString()); 91 92 return (SKIP_BODY); 93 } 94 95 98 public int doEndTag( 99 ) throws JspException 100 { 101 return (EVAL_PAGE); 102 } 103 } 104 | Popular Tags |