1 21 22 package org.opensubsystems.core.www; 23 24 import javax.servlet.http.HttpServletRequest ; 25 import javax.servlet.jsp.JspException ; 26 27 37 public class WebModuleInitTag extends PageElementCacheTag 38 { 39 41 44 private static final long serialVersionUID = 5887888143382459204L; 45 46 48 51 public WebModuleInitTag() 52 { 53 super(); 54 } 55 56 58 61 public int doStartTag( 62 ) throws JspException 63 { 64 String contextpath; 65 StringBuffer sbBuffer = new StringBuffer (); 66 67 contextpath = ((HttpServletRequest )pageContext.getRequest()).getContextPath(); 68 69 73 sbBuffer.append("<link HREF=\""); 74 sbBuffer.append(contextpath); 75 sbBuffer.append("/core/css/tabtoolbar.css\" rel=\"StyleSheet\"" + 76 " type=\"text/css\" media=\"screen\">"); 77 cache(PageElementCacheTag.CSS_ELEMENT, sbBuffer.toString()); 78 79 return (SKIP_BODY); 80 } 81 82 85 public int doEndTag( 86 ) throws JspException 87 { 88 return (EVAL_PAGE); 89 } 90 } 91 | Popular Tags |