public ActionForward clearVendor( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { PurchasingFormBase baseForm = (PurchasingFormBase) form; CuRequisitionDocument document = (CuRequisitionDocument) baseForm.getDocument(); document.setVendorHeaderGeneratedIdentifier(null); document.setVendorDetailAssignedIdentifier(null); document.setVendorDetail(null); document.setVendorName(""); document.setVendorLine1Address(""); document.setVendorLine2Address(""); document.setVendorAddressInternationalProvinceName(""); document.setVendorCityName(""); document.setVendorStateCode(""); document.setVendorPostalCode(""); document.setVendorCountryCode(""); document.setVendorContractGeneratedIdentifier(null); document.setVendorContract(null); document.setVendorFaxNumber(""); document.setVendorCustomerNumber(""); document.setVendorAttentionName(""); document.setVendorAddressGeneratedIdentifier(null); // clearing value that was set in PurchasingDocumentBase.templateVendorAction document.setVendorAddressGeneratedIdentifier(null); // clearing value that was set in PurchasingDocumentBase.templateVendorAction return mapping.findForward(KFSConstants.MAPPING_BASIC); }