anchor.diff:    </div>
   </f:view>
   </body>
  -</html>+</html>
  
positive.code:         rel_search_association = (String) request.getParameter("rel");
          rel_search_rela = (String) request.getParameter("rela");
          selectProperty = (String) request.getParameter("prop");
          
          
      } else {
  	selectSearchOption = (String) request.getAttribute("selectSearchOption");
      }
  
      if (selectSearchOption == null || selectSearchOption.compareTo("null") == 0) {
          selectSearchOption = "Property";
      }
  
  
         SearchStatusBean bean = null;
         String message = (String) request.getAttribute("message");
  	if (!refresh_page || message != null) {       
  
  	       Object bean_obj = FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get("searchStatusBean");
  	       if (bean_obj == null) {
  	           bean_obj = request.getAttribute("searchStatusBean");
  	       }
  	       
  	       
  	       if (bean_obj == null) {
  			   bean = new SearchStatusBean();
  			   FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("searchStatusBean", bean);
  
  	       } else {
  			   bean = (SearchStatusBean) bean_obj;
  			   adv_search_algorithm = bean.getAlgorithm();
  			   adv_search_source = bean.getSelectedSource();
  			   selectProperty = bean.getSelectedProperty();
  			   search_string = bean.getMatchText();
  			   rel_search_association = bean.getSelectedAssociation();
  			   rel_search_rela = bean.getSelectedRELA();
  			   
  			   System.out.println("advanced_search.jsp adv_search_algorithm: " + adv_search_algorithm);
  			   System.out.println("advanced_search.jsp adv_search_source: " + adv_search_source);
  			   System.out.println("advanced_search.jsp selectProperty: " + selectProperty);
  			   System.out.println("advanced_search.jsp search_string: " + search_string);
  			   System.out.println("advanced_search.jsp rel_search_association: " + rel_search_association);
  			   System.out.println("advanced_search.jsp rel_search_rela: " + rel_search_rela);
  			   FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("searchStatusBean", bean);
  
  	       }
  	}
  
  
  if (rel_search_association == null) rel_search_association = "ALL";
  if (rel_search_rela == null) rel_search_rela = " ";
  if (selectProperty == null) selectProperty = "ALL";
  if (adv_search_source == null) adv_search_source = "ALL";
  if (search_string == null) search_string = "";
  if (adv_search_algorithm == null) adv_search_algorithm = "exactMatch";
  
  /*
  System.out.println("adv_search_algorithm: " + adv_search_algorithm);
  System.out.println("search_string: " + search_string);
  System.out.println("adv_search_source: " + adv_search_source);
  System.out.println("selectProperty: " + selectProperty);
  System.out.println("rel_search_association: " + rel_search_association);
  System.out.println("rel_search_rela: " + rel_search_rela);
  System.out.println("\n"); 
  */
  
      String check__e = "", check__b = "", check__s = "" , check__c ="";
      if (adv_search_algorithm == null || adv_search_algorithm.compareTo("exactMatch") == 0)
        check__e = "checked";
      else if (adv_search_algorithm.compareTo("startsWith") == 0)
        check__s= "checked";
      else if (adv_search_algorithm.compareTo("DoubleMetaphoneLuceneQuery") == 0)
        check__b= "checked";
      else
        check__c = "checked";
        
   %>      
        
        <div class="pagecontent">
            <table>
  
       <tr class="textbody"><td>
         <%
        if (message != null) {
        %>
  	 <p class="textbodyred">&nbsp;<%=message%></p>
        <%
        }
        %>
        </td></tr>
  
               <tr class="textbody">
                    <td>    
   		      <FORM NAME="advancedSearchForm" METHOD="POST" CLASS="search-form" >
                            <table>
                            
                               <tr><td>
                               <input CLASS="searchbox-input" name="matchText" value="<%=search_string%>">
                                
   			    <h:commandButton id="adv_search" value="Search" action="#{userSessionBean.advancedSearchAction}"
   			      onclick="javascript:cursor_wait();"
   			      image="#{facesContext.externalContext.requestContextPath}/images/search.gif"
   			      alt="Search">
   			    </h:commandButton>
                               
                               </td></tr>
   
                                <tr><td>
   
   				  <table border="0" cellspacing="0" cellpadding="0">
   				    <tr valign="top" align="left">
   				      <td align="left" class="textbody"><input type="radio"
   					name="adv_search_algorithm" value="exactMatch" alt="Exact Match" <%=check__e%>>Exact
   				      Match&nbsp; <input type="radio" name="adv_search_algorithm" value="startsWith"
   					alt="Begins With" <%=check__s%>>Begins With&nbsp; <input
   					type="radio" name="adv_search_algorithm" value="contains" alt="Containts"
   					<%=check__c%>>Contains
   					</td>
   				    </tr>
   				    
   				 </table>   
                               </td></tr>
                               
                               
  <tr><td>
  <h:outputLabel id="rel_search_source_Label" value="Source" styleClass="textbody">
  <select id="adv_search_source" name="adv_search_source" size="1">
  <% 
     Vector src_vec = OntologyBean.getSupportedSources();
     t = "ALL";
     if (adv_search_source == null) adv_search_source = "ALL";
          if (t.compareTo(adv_search_source) == 0) {
  %>            
              <option value="<%=t%>" selected><%=t%></option>
  <%            
          } else {
  %>       
              <option value="<%=t%>"><%=t%></option>
  <%             
          }
     
     for (int i=0; i<src_vec.size(); i++) {
          t = (String) src_vec.elementAt(i);
          if (t.compareTo(adv_search_source) == 0) {
  %>            
              <option value="<%=t%>" selected><%=t%></option>
  <%            
          } else {
  %>       
              <option value="<%=t%>"><%=t%></option>
  <%             
          }
     }
  %>   
  </select>
  </h:outputLabel>  
  </td></tr>
           
  
  <tr><td>
  &nbsp;&nbsp;
  </td></tr>         
           
  
                <tr><td>
  			    <h:outputLabel id="searchOptionLabel" value="Search By" styleClass="textbody">
  
  
  <select id="selectSearchOption" name="selectSearchOption" size="1" onchange="javascript:refresh()" >
  if (selectSearchOption == null) selectSearchOption = "Property";
  <%
  if (selectSearchOption.compareTo("Property") == 0) {
  %>
      <option value="Property" selected>Property</option>
      <option value="Relationship" >Relationship</option>
  <%
  } else {
  %>
      <option value="Property" >Property</option>
      <option value="Relationship" selected >Relationship</option>
  <%
  }
  %>
  
  </select>
  				
  			    </h:outputLabel> 
  			    
  	      </td></tr>
  			  
               
  
  <tr><td>
  <table>
  <%
   if (selectSearchOption.compareTo("Property") == 0) {
  %>
  
      <input type="hidden" name="rel_search_association" id="rel_search_association" value="<%=rel_search_association%>">
      <input type="hidden" name="rel_search_rela" id="rel_search_rela" value="<%=rel_search_rela%>">
  
  
                <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>
    			    <h:outputLabel id="selectPropertyLabel" value="Property" styleClass="textbody">
  
  
               <select id="selectProperty" name="selectProperty" size="1">
          <%    
                  t = "ALL";
  		if (t.compareTo(selectProperty) == 0) {
  	%>            
  		    <option value="<%=t%>" selected><%=t%></option>
  	<%            
  		} else {
  	%>       
  		    <option value="<%=t%>"><%=t%></option>
  	<%             
  		}
          %>
          
               <%   
                  Vector property_vec = OntologyBean.getSupportedPropertyNames();
                  for (int i=0; i<property_vec.size(); i++) {
                      t = (String) property_vec.elementAt(i);
  			if (t.compareTo(selectProperty) == 0) {
  		%>            
  			    <option value="<%=t%>" selected><%=t%></option>
  		<%            
  			} else {
  		%>       
  			    <option value="<%=t%>"><%=t%></option>
  		<%             
  			}
                  }
               %>  
               
               </select>
               
  <!--             
    			    
   				<h:selectOneMenu id="selectProperty" value="#{searchStatusBean.selectedProperty}" 
   				    valueChangeListener="#{searchStatusBean.selectedPropertyChanged}"
   				    immediate="true" >
   				  <f:selectItems value="#{searchStatusBean.propertyList}" />
   				</h:selectOneMenu> 
  --> 				
   				
   				
   			    </h:outputLabel> 
                </td></tr>                         
  
  <% } else { %> 
  
             <input type="hidden" name="selectProperty" id="selectProperty" value="<%=selectProperty%>">
      
             <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>
             
               <h:outputLabel id="rel_search_associationLabel" value="Relationship" styleClass="textbody">
               <select id="rel_search_association" name="rel_search_association" size="1">
          <%    
                  t = "ALL";
  		if (t.compareTo(rel_search_association) == 0) {
  	%>            
  		    <option value="<%=t%>" selected><%=t%></option>
  	<%            
  		} else {
  	%>       
  		    <option value="<%=t%>"><%=t%></option>
  	<%             
  		}
          %>
          
               <%   
                  Vector association_vec = OntologyBean.getSupportedAssociationNames();
                  for (int i=0; i<association_vec.size(); i++) {
                      t = (String) association_vec.elementAt(i);
  			if (t.compareTo(rel_search_association) == 0) {
  		%>            
  			    <option value="<%=t%>" selected><%=t%></option>
  		<%            
  			} else {
  		%>       
  			    <option value="<%=t%>"><%=t%></option>
  		<%             
  			}
                  }
               %>  
               
               
               </select>
               </h:outputLabel>  
             </td></tr>
             
             
             <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>
               <h:outputLabel id="rel_search_rela_Label" value="RELA" styleClass="textbody">
               <select id="rel_search_rela" name="rel_search_rela" size="1">
  <%             
               t = " ";
               if (t.compareTo(rel_search_rela) == 0) {
  %>             
                   <option value="<%=t%>" selected><%=t%></option>
  <%                 
               } else {
  %>             
                   <option value="<%=t%>"><%=t%></option>
  <%                 
               }
   %>            
               <% 
                  Vector rela_vec = OntologyBean.getRELAs();
                  for (int i=0; i<rela_vec.size(); i++) {
                       t = (String) rela_vec.elementAt(i);
                       //System.out.println("rela: " + t);
                       if (t.compareTo(rel_search_rela) == 0) {
                       %>
                           <option value="<%=t%>" selected><%=t%></option>
               <%
                       } else {
               %>       
                           <option value="<%=t%>"><%=t%></option>
               <%       
                       }
                  }
               %>   
               </select>
               </h:outputLabel>  
             </td></tr> 
  
  <%                              
  } 
  %>  
  
  
  </table>
  
  </td></tr>
   
                               
                           </table>   
                          
  		     <input type="hidden" name="referer" id="referer" value="<%=HTTPUtils.getRefererParmEncode(request)%>">
           </form> 
  		     
  		</td>             
   
               </tr>
  
            </table>    
  
            <%@ include file="/pages/include/nciFooter.jsp" %>
        </div>
        <!-- end Page content -->
      </div>
  
negative.code: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
  <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
  <%@ page contentType="text/html;charset=windows-1252"%>
  <%@ page import="java.io.*" %>
  <%@ page import="java.util.*"%>
  <%@ page import="org.LexGrid.concepts.Concept" %>
  <%@ page import="gov.nih.nci.evs.browser.bean.*" %>
  <%@ page import="gov.nih.nci.evs.browser.utils.*" %>
  <%@ page import="gov.nih.nci.evs.browser.properties.*" %>
  <%@ page import="gov.nih.nci.evs.browser.utils.*" %>
  <%@ page import="javax.faces.context.FacesContext" %>
  <%@ page import="org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference" %>
  
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  <html>
  