Object command,
BindException errors) throws Exception {
LOGGER.debug("onSubmit is called");
SearchCommand searchCommand = (SearchCommand) command;
List<SearchCriteriaCommand> criterias = searchCommand.getCriterias();
if (request.getParameter("And") != null) {
addCriterias(request, searchCommand, Constants.AND_OPERATOR);
} else if (request.getParameter("OR") != null) {
addCriterias(request, searchCommand, Constants.OR_OPERATOR);
} else if (request.getParameter(ACTION_DELETE) != null) {
if (searchCommand.getCriterias().size() > 0) {
String[] deleteConditions = request.getParameterValues("deleteCondition");
for (int i = 0; deleteConditions != null && i < deleteConditions.length; i++) {
criterias.set(i, null);
}// end for
for (int i = 0; i <= criterias.size(); i++) {