Я использую действия strut и хочу передать один объект и один текст, используя $ http angularJS, и класс действий strut.
var applicationFlow = $('#txtApplicationFlow').val();
//alert(applicationFlow);
var primaryUserDetails ={
firstName: $scope.txtFirstName,
middleName:$scope.txtMiddleName,
lastName: $scope.txtLastName,
familyCode:$scope.stFamilyCode,
add1: $scope.stSenderAdd1,
add2: $scope.stSenderAdd2,
add3: $scope.stSenderAdd3,
city: $scope.stSenderCity,
state: $scope.state,
zipCode: $scope.stZipCode,
country: $scope.country,
phoneNo: $scope.txtPhoneNo,
emailID: $scope.txtEmailId,
rName: $scope.txtRitvikName,
rActive: $scope.chkIsDecessed,
pwd: $scope.stPassword
};
//var contextPath = "addPrimaryUser.do"+"?primaryUserDetails="+ JSON.stringify(priaryUserDetails)+"&applicationFlow="+applicationFlow;
var contextPath = "addPrimaryUser.do"+"?primaryUserDetails="+ priaryUserDetails+"&applicationFlow="+applicationFlow;
$http({
method : "POST",
url : contextPath,
data: primaryUserDetails
}).then ..........
Как передать applicationFlow и primaryUserDetails одновременно?