public int doStartTag() throws PageException {
_doStartTag();
return SKIP_BODY;
}
public void _doStartTag() throws PageException {
QueryCacheSupport qc = ((QueryCacheSupport)pageContext.getQueryCache());
if(action.equalsIgnoreCase("clear")) {
if(filter==null)
qc.clear(pageContext);
else
qc.clear(pageContext,filter);
}
else if(action.equalsIgnoreCase("size")) {
pageContext.setVariable(result, Caster.toDouble(qc.size(pageContext)));
}
else throw new ApplicationException("attribute action has an invalid value ["+action+"], valid is only [clear,size]");