/** * @return to official search property result screen * @description searches property based on Demand */ @ValidationErrorPage(value = "new") @Action(value = "/search/searchProperty-searchByDemand") public String searchByDemand() { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Entered into searchByDemand method"); LOGGER.debug("From Demand No : " + fromDemand + ", " + "To Demand No : " + toDemand); } if (fromDemand != null && fromDemand != "" && toDemand != null && toDemand != "") try { final List<PropertyMaterlizeView> propertyList = propertyService.getPropertyByDemand(fromDemand, toDemand); for (final PropertyMaterlizeView propMatview : propertyList) { if (LOGGER.isDebugEnabled()) LOGGER.debug("searchByDemand : Property : " + propMatview); setSearchResultList(getResultsFromMv(propMatview)); } setSearchUri("../search/searchProperty-searchByDemand.action"); setSearchCriteria("Search By FromDemand, ToDemand"); setSearchValue("From Demand: " + fromDemand + ", To Demand: " + toDemand); } catch (final Exception e) { LOGGER.error("Exception in Search Property By Demand ", e); throw new ApplicationRuntimeException("Exception : " + e); } return TARGET; }