id = request.getParameter("id");
}
}
private void validateHelpSet() {
HelpSet tesths = helpBroker.getHelpSet();
// If there is already a HelpSet and there isn't a hsName
// return. Nothing to do
if (tesths != null && hsName == null) {
return;
}
// If there isn't a HelpSet and there isn't a hsName
// then forward to the invalid page
if (tesths == null && hsName == null) {
try {
pageContext.forward(invalidURLPath);
} catch (Exception e) {
// ignore it
return;
}
}
// If we don't have a helpset and there is a hsName
// the create one and set the HelpBroker to this page
if (tesths == null && hsName != null) {
helpBroker.setHelpSet(createHelpSet());
return;
}
// If we have a helpset and there is a hsname
// and merging is turned on, merge the helpset
if (tesths != null && hsName != null && merge) {
tesths.add(createHelpSet());
}
}