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 41 public class DoubleSelectInitTag extends PageElementCacheTag 42 { 43 45 48 private static final long serialVersionUID = 346513505878754087L; 49 50 52 55 public DoubleSelectInitTag() 56 { 57 super(); 58 } 59 60 62 65 public int doStartTag( 66 ) throws JspException 67 { 68 String contextpath; 69 StringBuffer sbBuffer = new StringBuffer (); 70 71 contextpath = ((HttpServletRequest )pageContext.getRequest()).getContextPath(); 72 73 79 sbBuffer.append("<link HREF=\""); 80 sbBuffer.append(contextpath); 81 sbBuffer.append("/patterns/css/doubleselect.css\" rel=\"StyleSheet\"" + 82 " type=\"text/css\" media=\"screen\">"); 83 cache(PageElementCacheTag.CSS_ELEMENT, sbBuffer.toString()); 84 85 sbBuffer.delete(0, sbBuffer.length()); 86 sbBuffer.append("<script type=\"text/javascript\" language=\"JavaScript\" SRC=\""); 87 sbBuffer.append(contextpath); 88 sbBuffer.append("/patterns/js/doubleselect.js\"></script>"); 89 cache(PageElementCacheTag.JS_ELEMENT, sbBuffer.toString()); 90 91 return (SKIP_BODY); 92 } 93 94 97 public int doEndTag( 98 ) throws JspException 99 { 100 return (EVAL_PAGE); 101 } 102 } 103 | Popular Tags |