throws JspException {
StringBuffer results = new StringBuffer();
ModuleConfig config =
TagUtils.getInstance().getModuleConfig(pageContext);
ValidatorResources resources =
(ValidatorResources) pageContext.getAttribute(
ValidatorPlugIn.VALIDATOR_KEY
+ config.getPrefix(), PageContext.APPLICATION_SCOPE);
if (resources == null) {
throw new JspException(
"ValidatorResources not found in application scope under key \""
+ ValidatorPlugIn.VALIDATOR_KEY + config.getPrefix() + "\"");
}
Locale locale =
TagUtils.getInstance().getUserLocale(this.pageContext, null);
Form form = null;
if ("true".equalsIgnoreCase(dynamicJavascript)) {
form = resources.getForm(locale, formName);
if (form == null) {
throw new JspException("No form found under '" + formName
+ "' in locale '" + locale
+ "'. A form must be defined in the "
+ "Commons Validator configuration when "