* @return
* @throws Exception
*/
public ActionForward genericAjaxSearch(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
logger.debug("in genericAjaxSearch...");
MemberForm memForm = (MemberForm)form;
String searchCriteria = memForm.getSearchCriteria();
String searchWord = "";
String ajaxFormat = memForm.getAjaxFormat();
if(memForm.getApproach() != null){
if (searchCriteria.equals(BaseConstants.FIRST_NAME)){
searchWord = memForm.getFirstName();
}
else if (searchCriteria.equals(BaseConstants.LAST_NAME)){
searchWord = memForm.getLastName();
}
else if (searchCriteria.equals(BaseConstants.MAIDEN_NAME)){
searchWord = memForm.getMaidenName();
}
else if (searchCriteria.equals(BaseConstants.NICK_NAME)){
searchWord = memForm.getNickName();
}
else if (searchCriteria.equals(BaseConstants.FULL_NAME)){
searchWord = memForm.getMessageToUserName();
}
if (ajaxFormat.equals(BaseConstants.AJAX_FORMAT_STRING)){
List<String> result = memService.genericAjaxSearch(searchWord, searchCriteria);
request.setAttribute("result", result);