anchor.diff:      Set tableNamesList = tableDataMap.keySet();
       String pageOf = (String)request.getAttribute("pageOf");
       String callAction = new String();
  +    String selectedColumns[] = null;
  +    String [] columnNames=null;
  +
       if(pageOf.equals(Constants.PAGEOF_SIMPLE_QUERY_INTERFACE))
   	{
   		callAction=Constants.SIMPLE_SEARCH_AFTER_CONFIGURE_ACTION+"?pageOf="+Constants.PAGEOF_SIMPLE_QUERY_INTERFACE;
  +	    SimpleQueryInterfaceForm form = (SimpleQueryInterfaceForm)request.getAttribute("simpleQueryInterfaceForm");
  +	    selectedColumns = form.getSelectedColumnNames();
  +
   	}
   	else if(pageOf.equals(Constants.PAGEOF_DISTRIBUTION))
   	{
   		callAction=Constants.DISTRIBUTION_REPORT_ACTION;
  +		ConfigureResultViewForm form = (ConfigureResultViewForm)request.getAttribute("configureResultViewForm");
  +		selectedColumns = form.getSelectedColumnNames();
  +
   	}
   	else if(pageOf.equals(Constants.PAGEOF_QUERY_RESULTS))
   	{
   		callAction = Constants.CONFIGURE_ADVANCED_SEARCH_RESULTS_ACTION;
  -	}
  +		AdvanceSearchForm form = (AdvanceSearchForm)request.getAttribute("advanceSearchForm");
  +		selectedColumns = form.getSelectedColumnNames();
  +
  +	}
  +    if(selectedColumns!=null)
  +    {	    
  +    	columnNames=new String[selectedColumns.length];
  +    	for(int i=0;i<selectedColumns.length;i++)
  +    	{
  +    		//Split the string which is in the form TableAlias.columnNames.columnDisplayNames
  +    		StringTokenizer st= new StringTokenizer(selectedColumns[i],".");
  +    		while (st.hasMoreTokens())
  +    		{
  +    			st.nextToken();
  +    			st.nextToken();
  +    			columnNames[i]=st.nextToken();
  +	    		if(st.hasMoreTokens())
  +	    			st.nextToken();
  +
  +    		}
  +    	}
  +    }
   %>
   <SCRIPT LANGUAGE="JavaScript">
   	//var pageOf = <%=pageOf%>;
  
positive.code: 			            </td>
  			            <td class="formField">
  			                <html:select property="selectedColumnNames" styleClass="formFieldSized" styleId="selectedColumnNames" size="10" multiple="true">
                   
  			                </html:select>
  			            </td>
  			            <td align="center" valign="middle">
  
negative.code: 	}
  	
  </script>
  
  </head>
  <html:errors/>
  <html:form action="<%=Constants.DISTRIBUTION_REPORT_ACTION%>">
  