CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
String returnStatus = ".view.error";
String rowId[] = null;
AccountHelperHome accountHome = (AccountHelperHome)CVUtility.getHomeObject(
"com.centraview.account.helper.AccountHelperHome", "AccountHelper");
ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
"com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
try {
if (request.getParameterValues("rowId") != null) {
rowId = request.getParameterValues("rowId");
} else {
rowId[0] = new String(request.getParameter(Constants.PARAMID));
}
DynaActionForm dynaForm = (DynaActionForm)form;
AddressVO avo = null;
ContactFacade remote = cfh.create();
remote.setDataSource(dataSource);
avo = remote.getAddress(Integer.parseInt(rowId[0]));
if (avo != null) {
dynaForm.set("addressid", rowId[0]);
if (avo.getStreet1() != null) {
dynaForm.set("street1", avo.getStreet1());
}
if (avo.getStreet2() != null) {
dynaForm.set("street2", avo.getStreet2());
}
if (avo.getCity() != null) {
dynaForm.set("city", avo.getCity());
}
if (avo.getStateName() != null) {
dynaForm.set("state", avo.getStateName());
}
if (avo.getZip() != null) {
dynaForm.set("zipcode", avo.getZip());
}
if (avo.getCountryName() != null) {
dynaForm.set("country", avo.getCountryName());
}
if (avo.getIsPrimary() != null) {
dynaForm.set("isPrimary", avo.getIsPrimary());
}
dynaForm.set("jurisdictionID", avo.getJurisdictionID() + "");
}
AccountHelper accountRemote = accountHome.create();
accountRemote.setDataSource(dataSource);
Vector taxJurisdiction = accountRemote.getTaxJurisdiction();
dynaForm.set("jurisdictionVec", taxJurisdiction);