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);
dataSource = InventoryConnectionManager.queryUserForConnection(this, dataSource); if (dataSource == null) { displayErrorString("Was unable to connect to servlet."); return;
    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);		    }