Vector orgs = dataSource.getOrgNames(); if (orgs == null) { displayErrorString("Error. Was unable to retrieve orgs."); } String[] supplyTypes = dataSource.getSupplyTypes(); selector.initializeComboBoxes(orgs, supplyTypes); }
    protected void connectToServlet() {	dataSource = InventoryConnectionManager.queryUserForConnection(this);	if(dataSource == null) {	    displayErrorString("Was unable to connect to servlet.");	    return;	}	Vector orgs = dataSource.getOrgNames();	if(orgs == null) {	    displayErrorString("Error. Was unable to retrieve orgs.");	}	String[] supplyTypes = dataSource.getSupplyTypes();	selector.initializeComboBoxes(orgs,supplyTypes);		    }