%@ page import="gui.common.query.UnitLevelQuery" %> <%@ page import="gui.common.settings.UIConst" %> <%@ page import="gui.common.management.UIManager" %> <%-- *******************************Initialisation************************* --%> <%HttpSession currSession = request.getSession(); UnitLevelQuery ULQuery = (UnitLevelQuery) currSession.getValue("ULQuery"); if (ULQuery == null) ULQuery = new UnitLevelQuery(); String red=request.getParameter("redirection"); manager.setSearchType(UIConst.UL_BASIC_SEARCH); manager.setScreenID(UIConst.UL_BASIC_SEARCH); manager.setAdditionalTitle(""); if (red != null) { if (red.compareTo("Reset") == 0) { ULQuery = new UnitLevelQuery(); currSession.setAttribute("ULQuery", ULQuery); } if (red.compareTo("ReloadQuery")==0) { String idx = request.getParameter("ID"); ULQuery = manager.getCurrentULQuery(idx); if (idx != null) currSession.setAttribute("ULQuery", ULQuery); } else if (red.compareTo("specimenSearch") == 0) { ULQuery.setWildcardOption(request.getParameter("basic_search_option")); ULQuery.setkeywordTaxonomic(request.getParameter("ScientificName")); currSession.setAttribute("ULQuery", ULQuery); manager.addULQuery(ULQuery); manager.dispatch(red,response, request,getServletContext()); } else manager.dispatch(red,response, request,getServletContext()); }%>