Я хочу массив объектов JSON на стороне сервера stagewiseMenuDisplayViewValueList по запросу - ниже мой клиентский код, написанный в angularJS файле приложения
var url={};
url.objectId =tabconfig.objectId;
url.objectRevision =tabconfig.objectRevision;
url.objectName =tabconfig.objectName;
url.Selected_sub_tab = tabconfig.selectedSubTabId;
url.stagewiseMenuDisplayViewValueList = stagewiseMenuDisplayViewValueList;
var urlString = ResourceUtil.fnBuildRequestString(null,url,null);
var dataUrlDefault = "projectData.do?action=getAddStagewiseMenuAttributeListJSON&"+urlString;
var c = this;
c.formData = [];
FormLoaderService.getFormConfiguration(tabconfig,'Create',dataUrlDefault).then(function(data)
{
$scope.attributeJsonArr = data.attributeJsonArr;
$scope.workflowStages = $scope.attributeJsonArr[4];
$scope.selectedWorkflowStage = selectedStageValue;
angular.forEach($scope.attributeJsonArr,function(value,index)
{
$scope.metaAttribute.push(value);
});
}, function()
{
$log.error('Could not receive names.')
});
I получить все данные на стороне сервера, отправленные клиентом, кроме stagewiseMenuDisplayViewValueList Вот мой код на стороне сервера в файле действий struts -
public void getAddStagewiseMenuAttributeListJSON(HttpServletRequest request, HttpServletResponse
response) throws HWServerException, HWJDBCException
{
String transName = TransactionUtil.generateTransactionName(this);
Connection conn = null;
String contextName = ContextConfiguration.getContextName();
HttpSession session = request.getSession();
Login loginBean = (Login)session.getAttribute("loginBean");
String objectId = request.getParameter(PLMConstants.OBJECT_ID_PARAM);
String objectRevision = request.getParameter(PLMConstants.OBJECT_REVISION_PARAM);
String objectName = request.getParameter("objectName");
String Selected_sub_tab = request.getParameter(ConfigToolConstants.Selected_sub_tab);
String stagewiseMenuDisplayViewValueList =
request.getParameter("stagewiseMenuDisplayViewValueList");
//code
}