@DefaultHandler
@DontValidate
public Resolution view() {
// Check for the "view" parameter. It will be there if we got here by a form submission.
BugzookyActionBeanContext context = getContext();
boolean fromForm = context.getRequest().getParameter("view") != null;
if (fromForm && (getBugs() == null || getBugs().isEmpty())) {
context.getValidationErrors().addGlobalError(
new SimpleError("You must select at least one bug to edit."));
return context.getSourcePageResolution();
}
return new ForwardResolution("/bugzooky/BulkAddEditBugs.jsp");
}