*/
public boolean searchCategory(Object bean, ValidatorAction va, Field field,
ActionMessages messages, HttpServletRequest request) {
boolean condition = true;
MemberForm memForm = (MemberForm)bean;
String searchCategory = StringUtil.safeString(memForm.getSearchCategory());
String userName = StringUtil.safeString(memForm.getMemberUserName());
String firstName = StringUtil.safeString(memForm.getFirstName());
String lastName = StringUtil.safeString(memForm.getLastName());
String dorm = StringUtil.safeString(memForm.getDormitoryId());
String gender = StringUtil.safeString(memForm.getGender());
String yearIn = StringUtil.safeString(memForm.getYearIn());
String yearOut = StringUtil.safeString(memForm.getYearOut());
String marriageName = StringUtil.safeString(memForm.getLastName());
String nickName = StringUtil.safeString(memForm.getNickName());
String maidenName = StringUtil.safeString(memForm.getMaidenName());
if (searchCategory.equalsIgnoreCase(BaseConstants.FULL_SEARCH)) {
if (firstName.length() == 0 && lastName.length() == 0
&& dorm.length() == 0 && gender.length() == 0
&& yearIn.length() == 0 && yearOut.length() == 0