public void release() { super.release(); init(); }
/** * Returns the validator. */ public TagLibraryValidator getValidator() throws Exception { TagLibraryValidator validator; validator = (TagLibraryValidator) _validatorClass.newInstance(); validator.setInitParameters(_initParamMap); return validator; } }
/** * Translation-time validation of the XML document * associated with the JSP page. * This is a convenience method on the associated * TagLibraryValidator class. * * @param thePage The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; Map<String, Object> initParameters = tlv.getInitParameters(); if (initParameters == null) { tlv.setInitParameters(new HashMap<String, Object>()); } String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } ValidationMessage[] messages = tlv.validate(getPrefixString(), uri, thePage); tlv.release(); return messages; } }
/** * Translation-time validation of the XML document * associated with the JSP page. * This is a convenience method on the associated * TagLibraryValidator class. * * @param thePage The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } ValidationMessage[] messages = tlv.validate(getPrefixString(), uri, thePage); tlv.release(); return messages; }
/** * Translation-time validation of the XML document associated with the JSP * page. This is a convenience method on the associated TagLibraryValidator * class. * * @param thePage * The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } return tlv.validate(getPrefixString(), uri, thePage); }
/** * Translation-time validation of the XML document * associated with the JSP page. * This is a convenience method on the associated * TagLibraryValidator class. * * @param thePage The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } ValidationMessage[] messages = tlv.validate(getPrefixString(), uri, thePage); tlv.release(); return messages; }
/** * Translation-time validation of the XML document associated with the JSP * page. This is a convenience method on the associated TagLibraryValidator * class. * * @param thePage * The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } return tlv.validate(getPrefixString(), uri, thePage); }
@Override public void setInitParameters(Map<String, Object> initParams) { super.setInitParameters(initParams); permittedTaglibs.clear(); String uris = (String) initParams.get(PERMITTED_TAGLIBS_PARAM); if (uris != null) { StringTokenizer st = new StringTokenizer(uris); while (st.hasMoreTokens()) { permittedTaglibs.add(st.nextToken()); } } }
/** * Translation-time validation of the XML document * associated with the JSP page. * This is a convenience method on the associated * TagLibraryValidator class. * * @param thePage The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } ValidationMessage[] messages = tlv.validate(getPrefixString(), uri, thePage); tlv.release(); return messages; }
public void release() { super.release(); init(); }
/** * Translation-time validation of the XML document associated with the JSP * page. This is a convenience method on the associated TagLibraryValidator * class. * * @param thePage * The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } return tlv.validate(getPrefixString(), uri, thePage); }
@Override public void setInitParameters(Map<String, Object> initParams) { super.setInitParameters(initParams); permittedTaglibs.clear(); String uris = (String) initParams.get(PERMITTED_TAGLIBS_PARAM); if (uris != null) { StringTokenizer st = new StringTokenizer(uris); while (st.hasMoreTokens()) { permittedTaglibs.add(st.nextToken()); } } }
/** * Translation-time validation of the XML document * associated with the JSP page. * This is a convenience method on the associated * TagLibraryValidator class. * * @param thePage The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } ValidationMessage[] messages = tlv.validate(getPrefixString(), uri, thePage); tlv.release(); return messages; }
@Override public void release() { super.release(); init(); }
/** * Translation-time validation of the XML document associated with the JSP * page. This is a convenience method on the associated TagLibraryValidator * class. * * @param thePage * The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } return tlv.validate(getPrefixString(), uri, thePage); }
/** * Sets the values of the initialization parameters, as supplied in the TLD. * @param initParms a mapping from the names of the initialization parameters * to their values, as specified in the TLD. */ public void setInitParameters (Map<String, Object> initParms) { super.setInitParameters(initParms); String declarationsParm = (String) initParms.get("allowDeclarations"); String scriptletsParm = (String) initParms.get("allowScriptlets"); String expressionsParm = (String) initParms.get("allowExpressions"); String rtExpressionsParm = (String) initParms.get("allowRTExpressions"); allowDeclarations = "true".equalsIgnoreCase(declarationsParm); allowScriptlets = "true".equalsIgnoreCase(scriptletsParm); allowExpressions = "true".equalsIgnoreCase(expressionsParm); allowRTExpressions = "true".equalsIgnoreCase(rtExpressionsParm); }
/** * Translation-time validation of the XML document * associated with the JSP page. * This is a convenience method on the associated * TagLibraryValidator class. * * @param thePage The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } ValidationMessage[] messages = tlv.validate(getPrefixString(), uri, thePage); tlv.release(); return messages; }
@Override public void release() { super.release(); init(); }
/** * Translation-time validation of the XML document associated with the JSP * page. This is a convenience method on the associated TagLibraryValidator * class. * * @param thePage * The JSP page object * @return A string indicating whether the page is valid or not. */ public ValidationMessage[] validate(PageData thePage) { TagLibraryValidator tlv = getTagLibraryValidator(); if (tlv == null) return null; String uri = getURI(); if (uri.startsWith("/")) { uri = URN_JSPTLD + uri; } return tlv.validate(getPrefixString(), uri, thePage); }
/** * Sets the values of the initialization parameters, as supplied in the TLD. * @param initParms a mapping from the names of the initialization parameters * to their values, as specified in the TLD. */ public void setInitParameters (Map<String, Object> initParms) { super.setInitParameters(initParms); String declarationsParm = (String) initParms.get("allowDeclarations"); String scriptletsParm = (String) initParms.get("allowScriptlets"); String expressionsParm = (String) initParms.get("allowExpressions"); String rtExpressionsParm = (String) initParms.get("allowRTExpressions"); allowDeclarations = "true".equalsIgnoreCase(declarationsParm); allowScriptlets = "true".equalsIgnoreCase(scriptletsParm); allowExpressions = "true".equalsIgnoreCase(expressionsParm); allowRTExpressions = "true".equalsIgnoreCase(rtExpressionsParm); }