}
}
}
// JSP Config
JspConfigMetaData config = metaData.getJspConfig();
if (config != null)
{
// JSP Property groups
List<JspPropertyGroupMetaData> groups = config.getPropertyGroups();
if (groups != null)
{
for (JspPropertyGroupMetaData group : groups)
{
org.apache.catalina.deploy.JspPropertyGroup jspPropertyGroup =
new org.apache.catalina.deploy.JspPropertyGroup();
for (String pattern : group.getUrlPatterns())
{
jspPropertyGroup.addUrlPattern(pattern);
}
jspPropertyGroup.setElIgnored(group.getElIgnored());
jspPropertyGroup.setPageEncoding(group.getPageEncoding());
jspPropertyGroup.setScriptingInvalid(group.getScriptingInvalid());
jspPropertyGroup.setIsXml(group.getIsXml());
if (group.getIncludePreludes() != null)
{
for (String includePrelude : group.getIncludePreludes())
{
jspPropertyGroup.addIncludePrelude(includePrelude);
}
}
if (group.getIncludeCodas() != null)
{
for (String includeCoda : group.getIncludeCodas())
{
jspPropertyGroup.addIncludeCoda(includeCoda);
}
}
jspPropertyGroup.setDeferredSyntaxAllowedAsLiteral(group.getDeferredSyntaxAllowedAsLiteral());
jspPropertyGroup.setTrimDirectiveWhitespaces(group.getTrimDirectiveWhitespaces());
jspPropertyGroup.setDefaultContentType(group.getDefaultContentType());
jspPropertyGroup.setBuffer(group.getBuffer());
jspPropertyGroup.setErrorOnUndeclaredNamespace(group.getErrorOnUndeclaredNamespace());
context.addJspPropertyGroup(jspPropertyGroup);
}
}
// Taglib
List<TaglibMetaData> taglibs = config.getTaglibs();
if (taglibs != null)
{
for (TaglibMetaData taglib : taglibs)
{
context.addTaglib(taglib.getTaglibUri(), taglib.getTaglibLocation());