if (urlPattern != null &&
(urlPattern.startsWith("/") || (urlPattern.startsWith("*.") && urlPattern.length()!=2))){
result.passed(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addGoodDetails (smh.getLocalString
(getClass().getName() + ".passed",
"url-pattern [ {0} ] within [ {1} ] follows the rules specified in servlet specification",
new Object[] {urlPattern, descriptor.getName()}));
} else {
oneFailed=true;
result.failed(smh.getLocalString
("tests.componentNameConstructor",
"For [ {0} ]",
new Object[] {compName.toString()}));
result.addErrorDetails (smh.getLocalString
(getClass().getName() + ".failed",
"Error: Content of the url-pattern element [ {0} ] does not follow the rules specified in servlet specification within [ {1} ]",
new Object[] {urlPattern, descriptor.getName()}));
}