1 37 package net.thauvin.google.taglibs; 38 39 import net.thauvin.google.TagUtility; 40 41 42 56 public abstract class QuerySupport extends KeySupport 57 { 58 61 public void release() 62 { 63 super.release(); 64 } 65 66 71 protected final String getQuery() 72 { 73 String query = 74 TagUtility.getParameter(pageContext.getRequest(), 75 TagUtility.QUERY_PARAM); 76 77 if (TagUtility.isValidString(query, true)) 78 { 79 return query; 80 } 81 82 query = TagUtility.getTagBody(bodyContent, true); 83 84 if (TagUtility.isValidString(query, true)) 85 { 86 return query; 87 } 88 89 return ""; 90 } 91 92 95 protected void reset() 96 { 97 super.reset(); 98 } 99 } 100 | Popular Tags |