tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Lauman <jlau...@nwcascades.com>
Subject Taglib / context-param question
Date Wed, 09 Feb 2005 22:20:34 GMT
I have the following code in a custom taglib.  If I put the hex values 
of the colors in the context-param area of the web.xml file, how do you 
call them?


public int doEndTag() throws JspException {

Boolean alternate = (Boolean) 
ExpressionEvaluatorManager.evaluate("alternate", alternateEL, 
Boolean.class, this, pageContext);


if (alternate.booleanValue()) {
     color = "#EEEEFF";
} else {
     color = "#CCCCFF";
}

try {
     JspWriter out = pageContext.getOut();
     out.write(color);

     } catch (IOException e) {
         e.printStackTrace();
     }

     return EVAL_PAGE;
}




---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message