hf.forward(forwardHolder.result, forwardHolder.targetPath, forwardHolder.status);
}
}
// add String transformers for non default forward rules(forward
// by result)
transformerList.add(new DefaultStringTransformer());
// add global forward again for possible
// exceptions on the above transformers
for (GlobalForwardHolder forwardHolder : forwardHolderList) {
if (forwardHolder.isRedirect) {
hf.redirect(forwardHolder.result, forwardHolder.targetPath);
} else if (forwardHolder.status == null) {
hf.forward(forwardHolder.result, forwardHolder.targetPath);
} else {
hf.forward(forwardHolder.result, forwardHolder.targetPath, forwardHolder.status);
}
}
// add String transformers for the global forword rules
transformerList.add(new DefaultStringTransformer());
}
// add default forward rule
if (defaultTransformer != null) {
transformerList.add(defaultTransformer);
// add default String transformers for the default forward rule
transformerList.add(new DefaultStringTransformer());
// add global forward of Throwable result again again (!!!) for
// possible exceptions on the above transformers
for (GlobalForwardHolder forwardHolder : forwardHolderList) {
if (forwardHolder.isRedirect) {
hf.redirect(forwardHolder.result, forwardHolder.targetPath);
} else if (forwardHolder.status == null) {
hf.forward(forwardHolder.result, forwardHolder.targetPath);
} else {
hf.forward(forwardHolder.result, forwardHolder.targetPath, forwardHolder.status);
}
}
// add String transformers for the global throwable result
// forword rules
transformerList.add(new DefaultStringTransformer());
}
// add the last insured transformers
transformerList.add(new DefaultTemplateNotFoundExceptionTransformer());
transformerList.add(new DefaultExceptionTransformer());