springmvc jquery传递数组,

问题描述

springmvc jquery传递数组,

代码目的是把前台被选中的选项的id存入数组,再将数组传给input.通过form提交,在控制器拦截到并接收这个数组.
但是我现在接收到的是一个字符串.
同样的前台页面与拦截器代码.在另外一台笔记本上接收的是一个id数组.搞不清为啥
恳请各位解答
以下是源码.前台
1.<!DOCTYPE html >

<!--zui.js,jQuery.js用于菜单的展现-->

问卷详情

${survey.description}

$(document).ready(function(){
$("#tijiao").click(function(){
var c=[];
// $("input[type=checkbox]:checked").each(function(){
$("input:checked").each(function(){
c.push($(this).attr('value'));
})
$("#data").val(c);
alert($("#data").val());
});
});

<#if questions??>

  1. ${question.description}

  2. ${answer.options}.${answer.description}
    #list>

    ${answer.options}.${answer.description}
    #list>
    #if>

    其他其他#if>
    #if>

    #list>

</#if>

<#---->
点我

拦截器代码如下
@RequestMapping("/surveyResult")
public String surveyResult(
String[] answerids) {
System.out.println(answerids.length);
return "/admin/success";
}

输出的数值为1.

debug日志如下

解决方案

2015-06-17 13:46:48,235 DEBUG (org.springframework.web.servlet.DispatcherServlet:845) - DispatcherServlet with name 'mvc-dispatcher' processing GET request for [/background/surveyDetail]
2015-06-17 13:46:48,237 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:297) - Looking up handler method for path /background/surveyDetail
2015-06-17 13:46:48,237 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:302) - Returning handler method [public java.lang.String com.springapp.mvc.web.AdminController.surveyDetail(int,org.springframework.ui.ModelMap) throws java.net.UnknownHostException]
2015-06-17 13:46:48,237 DEBUG (org.springframework.web.servlet.DispatcherServlet:931) - Last-Modified value for [/background/surveyDetail] is: -1
2015-06-17 13:46:48,358 DEBUG (org.springframework.web.servlet.DispatcherServlet:1225) - Rendering view [org.springframework.web.servlet.view.freemarker.FreeMarkerView: name 'back/surveyDetail'; URL [back/surveyDetail.ftl]] in DispatcherServlet with name 'mvc-dispatcher'
2015-06-17 13:46:48,358 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'CharacterEncodingFilter.FILTERED' with value [true] to model
2015-06-17 13:46:48,358 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.FLASH_MAP_MANAGER' with value [org.springframework.web.servlet.support.SessionFlashMapManager@286684] to model
2015-06-17 13:46:48,358 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE' with value [WebApplicationContext for namespace 'mvc-dispatcher-servlet': startup date [Wed Jun 17 10:21:03 CST 2015]; parent: Root WebApplicationContext] to model
2015-06-17 13:46:48,358 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER' with value [org.springframework.web.servlet.theme.FixedThemeResolver@1bf0b4a] to model
2015-06-17 13:46:48,359 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.CONTEXT' with value [WebApplicationContext for namespace 'mvc-dispatcher-servlet': startup date [Wed Jun 17 10:21:03 CST 2015]; parent: Root WebApplicationContext] to model
2015-06-17 13:46:48,359 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.core.convert.ConversionService' with value [ConversionService converters =
@org.springframework.format.annotation.DateTimeFormat java.lang.Long -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008,@org.springframework.format.annotation.NumberFormat java.lang.Long -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.DateTimeFormat java.util.Calendar -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008
@org.springframework.format.annotation.DateTimeFormat java.util.Date -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008
@org.springframework.format.annotation.NumberFormat java.lang.Byte -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.lang.Double -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.lang.Float -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.lang.Integer -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.lang.Short -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.math.BigDecimal -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.math.BigInteger -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.Boolean -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1d79d84
java.lang.Character -> java.lang.Number : org.springframework.core.convert.support.CharacterToNumberFactory@f3d93d
java.lang.Character -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1215260
java.lang.Enum -> java.lang.String : org.springframework.core.convert.support.EnumToStringConverter@83c633
java.lang.Long -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$LongToCalendarConverter@33794f
java.lang.Long -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$LongToDateConverter@14fae2a
java.lang.Number -> java.lang.Character : org.springframework.core.convert.support.NumberToCharacterConverter@a759ba
java.lang.Number -> java.lang.Number : org.springframework.core.convert.support.NumberToNumberConverterFactory@14fa2b3
java.lang.Number -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@798009
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.lang.Long: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008,java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Long: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.util.Calendar: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.util.Date: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Byte: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Double: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Float: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Integer: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Short: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.math.BigDecimal: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.math.BigInteger: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> java.lang.Boolean : org.springframework.core.convert.support.StringToBooleanConverter@13b43ab
java.lang.String -> java.lang.Character : org.springframework.core.convert.support.StringToCharacterConverter@c4eeea
java.lang.String -> java.lang.Enum : org.springframework.core.convert.support.StringToEnumConverterFactory@a66e0f
java.lang.String -> java.lang.Number : org.springframework.core.convert.support.StringToNumberConverterFactory@142c49a
java.lang.String -> java.util.Locale : org.springframework.core.convert.support.StringToLocaleConverter@1497d1b
java.lang.String -> java.util.Properties : org.springframework.core.convert.support.StringToPropertiesConverter@1e4e7b8
java.lang.String -> java.util.UUID : org.springframework.core.convert.support.StringToUUIDConverter@a1b248
java.util.Calendar -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToLongConverter@1a74f6d
java.util.Calendar -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToDateConverter@17b5381
java.util.Date -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$DateToLongConverter@1597a76
java.util.Date -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$DateToCalendarConverter@176e807
java.util.Locale -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1b4a983
java.util.Properties -> java.lang.String : org.springframework.core.convert.support.PropertiesToStringConverter@128e828
java.util.UUID -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1bfa8c8
org.springframework.core.convert.support.ArrayToArrayConverter@18288ea
org.springframework.core.convert.support.ArrayToCollectionConverter@1e20431
org.springframework.core.convert.support.ArrayToObjectConverter@a2e9dc
org.springframework.core.convert.support.ArrayToStringConverter@8b9e88
org.springframework.core.convert.support.ByteBufferConverter@13c007e
org.springframework.core.convert.support.ByteBufferConverter@13c007e
org.springframework.core.convert.support.CollectionToArrayConverter@1813415
org.springframework.core.convert.support.CollectionToCollectionConverter@eae88f
org.springframework.core.convert.support.CollectionToObjectConverter@1388e18
org.springframework.core.convert.support.CollectionToStringConverter@dd52d8
org.springframework.core.convert.support.FallbackObjectToStringConverter@2d40c2
org.springframework.core.convert.support.IdToEntityConverter@447cf0,org.springframework.core.convert.support.ObjectToObjectConverter@66832a
org.springframework.core.convert.support.MapToMapConverter@4a08db
org.springframework.core.convert.support.ObjectToArrayConverter@1a793df
org.springframework.core.convert.support.ObjectToCollectionConverter@1f8e3ed
org.springframework.core.convert.support.StringToArrayConverter@552f85
org.springframework.core.convert.support.StringToCollectionConverter@69f0af
] to model
2015-06-17 13:46:48,363 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping' with value [/background/surveyDetail] to model
2015-06-17 13:46:48,363 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.context.request.async.WebAsyncManager.WEB_ASYNC_MANAGER' with value [org.springframework.web.context.request.async.WebAsyncManager@10d5616] to model
2015-06-17 13:46:48,363 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.resource.ResourceUrlProvider' with value [org.springframework.web.servlet.resource.ResourceUrlProvider@472108] to model
2015-06-17 13:46:48,363 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.OUTPUT_FLASH_MAP' with value [FlashMap [attributes={}, targetRequestPath=null, targetRequestParams={}]] to model
2015-06-17 13:46:48,363 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.HandlerMapping.uriTemplateVariables' with value [{}] to model
2015-06-17 13:46:48,363 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.HandlerMapping.bestMatchingPattern' with value [/background/surveyDetail] to model
2015-06-17 13:46:48,363 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER' with value [org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver@a8d33e] to model
2015-06-17 13:46:48,364 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'ip' of type [java.lang.String] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,365 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'a' of type [java.lang.Integer] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,365 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'ausers' of type [java.util.ArrayList] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,369 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'questions' of type [java.util.ArrayList] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,369 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'survey' of type [com.springapp.mvc.entity.Survey] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,369 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.validation.BindingResult.survey' of type [org.springframework.validation.BeanPropertyBindingResult] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,369 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'request' of type [org.springframework.web.servlet.support.RequestContext] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,370 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'CharacterEncodingFilter.FILTERED' of type [java.lang.Boolean] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,370 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.FLASH_MAP_MANAGER' of type [org.springframework.web.servlet.support.SessionFlashMapManager] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,370 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE' of type [org.springframework.web.context.support.XmlWebApplicationContext] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,370 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER' of type [org.springframework.web.servlet.theme.FixedThemeResolver] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,370 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.CONTEXT' of type [org.springframework.web.context.support.XmlWebApplicationContext] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,370 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.core.convert.ConversionService' of type [org.springframework.format.support.DefaultFormattingConversionService] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,370 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping' of type [java.lang.String] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,370 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.context.request.async.WebAsyncManager.WEB_ASYNC_MANAGER' of type [org.springframework.web.context.request.async.WebAsyncManager] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,371 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.resource.ResourceUrlProvider' of type [org.springframework.web.servlet.resource.ResourceUrlProvider] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,371 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.OUTPUT_FLASH_MAP' of type [org.springframework.web.servlet.FlashMap] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,371 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.HandlerMapping.uriTemplateVariables' of type [java.util.LinkedHashMap] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,373 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.HandlerMapping.bestMatchingPattern' of type [java.lang.String] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,373 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER' of type [org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,373 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'springMacroRequestContext' of type [org.springframework.web.servlet.support.RequestContext] to request in view with name 'back/surveyDetail'
2015-06-17 13:46:48,374 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:279) - Rendering FreeMarker template [back/surveyDetail.ftl] in FreeMarkerView 'back/surveyDetail'
2015-06-17 13:46:48,377 DEBUG (org.springframework.web.servlet.DispatcherServlet:996) - Successfully completed request
2015-06-17 13:46:48,393 DEBUG (org.springframework.web.servlet.DispatcherServlet:845) - DispatcherServlet with name 'mvc-dispatcher' processing GET request for [/dist/css/zui.css]
2015-06-17 13:46:48,393 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:297) - Looking up handler method for path /dist/css/zui.css
2015-06-17 13:46:48,395 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:305) - Did not find handler method for [/dist/css/zui.css]
2015-06-17 13:46:48,395 DEBUG (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:169) - Matching patterns for request [/dist/css/zui.css] are [/dist/**]
2015-06-17 13:46:48,395 DEBUG (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:194) - URI Template variables for request [/dist/css/zui.css] are {}
2015-06-17 13:46:48,395 DEBUG (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:124) - Mapping [/dist/css/zui.css] to HandlerExecutionChain with handler [ResourceHttpRequestHandler [locations=[ServletContext resource [/dist/]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@629153]]] and 1 interceptor
2015-06-17 13:46:48,396 DEBUG (org.springframework.web.servlet.DispatcherServlet:931) - Last-Modified value for [/dist/css/zui.css] is: -1
2015-06-17 13:46:48,396 DEBUG (org.springframework.web.servlet.DispatcherServlet:845) - DispatcherServlet with name 'mvc-dispatcher' processing GET request for [/dist/lib/jquery/jquery.js]
2015-06-17 13:46:48,396 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:297) - Looking up handler method for path /dist/lib/jquery/jquery.js
2015-06-17 13:46:48,396 DEBUG (org.springframework.web.servlet.DispatcherServlet:1018) - Null ModelAndView returned to DispatcherServlet with name 'mvc-dispatcher': assuming HandlerAdapter completed request handling
2015-06-17 13:46:48,396 DEBUG (org.springframework.web.servlet.DispatcherServlet:996) - Successfully completed request
2015-06-17 13:46:48,398 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:305) - Did not find handler method for [/dist/lib/jquery/jquery.js]
2015-06-17 13:46:48,399 DEBUG (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:169) - Matching patterns for request [/dist/lib/jquery/jquery.js] are [/dist/**]
2015-06-17 13:46:48,399 DEBUG (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:194) - URI Template variables for request [/dist/lib/jquery/jquery.js] are {}
2015-06-17 13:46:48,399 DEBUG (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:124) - Mapping [/dist/lib/jquery/jquery.js] to HandlerExecutionChain with handler [ResourceHttpRequestHandler [locations=[ServletContext resource [/dist/]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@629153]]] and 1 interceptor
2015-06-17 13:46:48,399 DEBUG (org.springframework.web.servlet.DispatcherServlet:931) - Last-Modified value for [/dist/lib/jquery/jquery.js] is: -1
2015-06-17 13:46:48,400 DEBUG (org.springframework.web.servlet.DispatcherServlet:1018) - Null ModelAndView returned to DispatcherServlet with name 'mvc-dispatcher': assuming HandlerAdapter completed request handling
2015-06-17 13:46:48,400 DEBUG (org.springframework.web.servlet.DispatcherServlet:996) - Successfully completed request
2015-06-17 13:46:48,404 DEBUG (org.springframework.web.servlet.DispatcherServlet:845) - DispatcherServlet with name 'mvc-dispatcher' processing GET request for [/dist/js/zui.js]
2015-06-17 13:46:48,404 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:297) - Looking up handler method for path /dist/js/zui.js
2015-06-17 13:46:48,407 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:305) - Did not find handler method for [/dist/js/zui.js]
2015-06-17 13:46:48,408 DEBUG (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:169) - Matching patterns for request [/dist/js/zui.js] are [/dist/**]
2015-06-17 13:46:48,408 DEBUG (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:194) - URI Template variables for request [/dist/js/zui.js] are {}
2015-06-17 13:46:48,408 DEBUG (org.springframework.web.servlet.handler.SimpleUrlHandlerMapping:124) - Mapping [/dist/js/zui.js] to HandlerExecutionChain with handler [ResourceHttpRequestHandler [locations=[ServletContext resource [/dist/]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@629153]]] and 1 interceptor
2015-06-17 13:46:48,408 DEBUG (org.springframework.web.servlet.DispatcherServlet:931) - Last-Modified value for [/dist/js/zui.js] is: -1
2015-06-17 13:46:48,409 DEBUG (org.springframework.web.servlet.DispatcherServlet:1018) - Null ModelAndView returned to DispatcherServlet with name 'mvc-dispatcher': assuming HandlerAdapter completed request handling
2015-06-17 13:46:48,409 DEBUG (org.springframework.web.servlet.DispatcherServlet:996) - Successfully completed request
2015-06-17 13:46:54,192 DEBUG (org.springframework.web.servlet.DispatcherServlet:845) - DispatcherServlet with name 'mvc-dispatcher' processing POST request for [/background/surveyResult]
2015-06-17 13:46:54,192 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:297) - Looking up handler method for path /background/surveyResult
2015-06-17 13:46:54,193 DEBUG (org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping:302) - Returning handler method [public java.lang.String com.springapp.mvc.web.AdminController.surveyResult(java.lang.String[])]
1
2015-06-17 13:46:54,194 DEBUG (org.springframework.web.servlet.DispatcherServlet:1225) - Rendering view [org.springframework.web.servlet.view.freemarker.FreeMarkerView: name '/admin/success'; URL [/admin/success.ftl]] in DispatcherServlet with name 'mvc-dispatcher'
2015-06-17 13:46:54,195 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'CharacterEncodingFilter.FILTERED' with value [true] to model
2015-06-17 13:46:54,195 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.FLASH_MAP_MANAGER' with value [org.springframework.web.servlet.support.SessionFlashMapManager@286684] to model
2015-06-17 13:46:54,195 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE' with value [WebApplicationContext for namespace 'mvc-dispatcher-servlet': startup date [Wed Jun 17 10:21:03 CST 2015]; parent: Root WebApplicationContext] to model
2015-06-17 13:46:54,196 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER' with value [org.springframework.web.servlet.theme.FixedThemeResolver@1bf0b4a] to model
2015-06-17 13:46:54,196 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.CONTEXT' with value [WebApplicationContext for namespace 'mvc-dispatcher-servlet': startup date [Wed Jun 17 10:21:03 CST 2015]; parent: Root WebApplicationContext] to model
2015-06-17 13:46:54,197 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.core.convert.ConversionService' with value [ConversionService converters =
@org.springframework.format.annotation.DateTimeFormat java.lang.Long -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008,@org.springframework.format.annotation.NumberFormat java.lang.Long -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.DateTimeFormat java.util.Calendar -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008
@org.springframework.format.annotation.DateTimeFormat java.util.Date -> java.lang.String: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008
@org.springframework.format.annotation.NumberFormat java.lang.Byte -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.lang.Double -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.lang.Float -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.lang.Integer -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.lang.Short -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.math.BigDecimal -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
@org.springframework.format.annotation.NumberFormat java.math.BigInteger -> java.lang.String: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.Boolean -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1d79d84
java.lang.Character -> java.lang.Number : org.springframework.core.convert.support.CharacterToNumberFactory@f3d93d
java.lang.Character -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1215260
java.lang.Enum -> java.lang.String : org.springframework.core.convert.support.EnumToStringConverter@83c633
java.lang.Long -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$LongToCalendarConverter@33794f
java.lang.Long -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$LongToDateConverter@14fae2a
java.lang.Number -> java.lang.Character : org.springframework.core.convert.support.NumberToCharacterConverter@a759ba
java.lang.Number -> java.lang.Number : org.springframework.core.convert.support.NumberToNumberConverterFactory@14fa2b3
java.lang.Number -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@798009
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.lang.Long: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008,java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Long: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.util.Calendar: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008
java.lang.String -> @org.springframework.format.annotation.DateTimeFormat java.util.Date: org.springframework.format.datetime.DateTimeFormatAnnotationFormatterFactory@f69008
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Byte: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Double: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Float: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Integer: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.lang.Short: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.math.BigDecimal: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> @org.springframework.format.annotation.NumberFormat java.math.BigInteger: org.springframework.format.number.NumberFormatAnnotationFormatterFactory@16a1447
java.lang.String -> java.lang.Boolean : org.springframework.core.convert.support.StringToBooleanConverter@13b43ab
java.lang.String -> java.lang.Character : org.springframework.core.convert.support.StringToCharacterConverter@c4eeea
java.lang.String -> java.lang.Enum : org.springframework.core.convert.support.StringToEnumConverterFactory@a66e0f
java.lang.String -> java.lang.Number : org.springframework.core.convert.support.StringToNumberConverterFactory@142c49a
java.lang.String -> java.util.Locale : org.springframework.core.convert.support.StringToLocaleConverter@1497d1b
java.lang.String -> java.util.Properties : org.springframework.core.convert.support.StringToPropertiesConverter@1e4e7b8
java.lang.String -> java.util.UUID : org.springframework.core.convert.support.StringToUUIDConverter@a1b248
java.util.Calendar -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToLongConverter@1a74f6d
java.util.Calendar -> java.util.Date : org.springframework.format.datetime.DateFormatterRegistrar$CalendarToDateConverter@17b5381
java.util.Date -> java.lang.Long : org.springframework.format.datetime.DateFormatterRegistrar$DateToLongConverter@1597a76
java.util.Date -> java.util.Calendar : org.springframework.format.datetime.DateFormatterRegistrar$DateToCalendarConverter@176e807
java.util.Locale -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1b4a983
java.util.Properties -> java.lang.String : org.springframework.core.convert.support.PropertiesToStringConverter@128e828
java.util.UUID -> java.lang.String : org.springframework.core.convert.support.ObjectToStringConverter@1bfa8c8
org.springframework.core.convert.support.ArrayToArrayConverter@18288ea
org.springframework.core.convert.support.ArrayToCollectionConverter@1e20431
org.springframework.core.convert.support.ArrayToObjectConverter@a2e9dc
org.springframework.core.convert.support.ArrayToStringConverter@8b9e88
org.springframework.core.convert.support.ByteBufferConverter@13c007e
org.springframework.core.convert.support.ByteBufferConverter@13c007e
org.springframework.core.convert.support.CollectionToArrayConverter@1813415
org.springframework.core.convert.support.CollectionToCollectionConverter@eae88f
org.springframework.core.convert.support.CollectionToObjectConverter@1388e18
org.springframework.core.convert.support.CollectionToStringConverter@dd52d8
org.springframework.core.convert.support.FallbackObjectToStringConverter@2d40c2
org.springframework.core.convert.support.IdToEntityConverter@447cf0,org.springframework.core.convert.support.ObjectToObjectConverter@66832a
org.springframework.core.convert.support.MapToMapConverter@4a08db
org.springframework.core.convert.support.ObjectToArrayConverter@1a793df
org.springframework.core.convert.support.ObjectToCollectionConverter@1f8e3ed
org.springframework.core.convert.support.StringToArrayConverter@552f85
org.springframework.core.convert.support.StringToCollectionConverter@69f0af
] to model
2015-06-17 13:46:54,198 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping' with value [/background/surveyResult] to model
2015-06-17 13:46:54,198 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.context.request.async.WebAsyncManager.WEB_ASYNC_MANAGER' with value [org.springframework.web.context.request.async.WebAsyncManager@58a7a] to model
2015-06-17 13:46:54,198 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.resource.ResourceUrlProvider' with value [org.springframework.web.servlet.resource.ResourceUrlProvider@472108] to model
2015-06-17 13:46:54,199 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.OUTPUT_FLASH_MAP' with value [FlashMap [attributes={}, targetRequestPath=null, targetRequestParams={}]] to model
2015-06-17 13:46:54,199 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.HandlerMapping.uriTemplateVariables' with value [{}] to model
2015-06-17 13:46:54,199 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.HandlerMapping.bestMatchingPattern' with value [/background/surveyResult] to model
2015-06-17 13:46:54,200 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:128) - Exposing request attribute 'org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER' with value [org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver@a8d33e] to model
2015-06-17 13:46:54,214 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'request' of type [org.springframework.web.servlet.support.RequestContext] to request in view with name '/admin/success'
2015-06-17 13:46:54,214 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'CharacterEncodingFilter.FILTERED' of type [java.lang.Boolean] to request in view with name '/admin/success'
2015-06-17 13:46:54,214 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.FLASH_MAP_MANAGER' of type [org.springframework.web.servlet.support.SessionFlashMapManager] to request in view with name '/admin/success'
2015-06-17 13:46:54,215 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE' of type [org.springframework.web.context.support.XmlWebApplicationContext] to request in view with name '/admin/success'
2015-06-17 13:46:54,215 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER' of type [org.springframework.web.servlet.theme.FixedThemeResolver] to request in view with name '/admin/success'
2015-06-17 13:46:54,215 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.CONTEXT' of type [org.springframework.web.context.support.XmlWebApplicationContext] to request in view with name '/admin/success'
2015-06-17 13:46:54,215 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.core.convert.ConversionService' of type [org.springframework.format.support.DefaultFormattingConversionService] to request in view with name '/admin/success'
2015-06-17 13:46:54,218 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping' of type [java.lang.String] to request in view with name '/admin/success'
2015-06-17 13:46:54,218 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.context.request.async.WebAsyncManager.WEB_ASYNC_MANAGER' of type [org.springframework.web.context.request.async.WebAsyncManager] to request in view with name '/admin/success'
2015-06-17 13:46:54,218 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.resource.ResourceUrlProvider' of type [org.springframework.web.servlet.resource.ResourceUrlProvider] to request in view with name '/admin/success'
2015-06-17 13:46:54,218 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.OUTPUT_FLASH_MAP' of type [org.springframework.web.servlet.FlashMap] to request in view with name '/admin/success'
2015-06-17 13:46:54,218 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.HandlerMapping.uriTemplateVariables' of type [java.util.LinkedHashMap] to request in view with name '/admin/success'
2015-06-17 13:46:54,219 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.HandlerMapping.bestMatchingPattern' of type [java.lang.String] to request in view with name '/admin/success'
2015-06-17 13:46:54,219 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER' of type [org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver] to request in view with name '/admin/success'
2015-06-17 13:46:54,219 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:432) - Added model object 'springMacroRequestContext' of type [org.springframework.web.servlet.support.RequestContext] to request in view with name '/admin/success'
2015-06-17 13:46:54,222 DEBUG (org.springframework.web.servlet.view.freemarker.FreeMarkerView:279) - Rendering FreeMarker template [/admin/success.ftl] in FreeMarkerView '/admin/success'
2015-06-17 13:46:54,225 DEBUG (org.springframework.web.servlet.DispatcherServlet:996) - Successfully completed request

解决方案二:

你的这句$("$data").val(c)其实是把调用了$("$data").val(c.toString()),而c.toString()会将数组中的内容按照逗号进行隔开,形成一个字符串。

解决方案三:

没粘全啊,看不到传值的部分

解决方案四:

感觉页面的代码没有粘贴完全啊

解决方案五:

一般的传递多个id通常都是使用字符串以“,”隔开,然后后台接受到后再split解析成id数组的。
你是怎么将数组数据存入input的呢?有没有可能存储的不是数组,而就是字符串呢?

相关文章


  • springmvc-jquery 的ajax 发送3个字符串和一个数组 怎么传递到springMVC的对应方法中
  • jquery ajax 向后台传 json 数组 出现 400 错误,后台用的springmvc
  • jquery如何获取springmvc传来的数据集合?
  • ajax-SpringMVC 接受Ajax传递参数为什么报400异常
  • jqueryajax-Jquery Ajax 如何向Sevlet传递数组,在Sevlet里如何接收这个数组
  • mvc模式前台界面向后台传值的问题,如何传递数组。
  • mybatis-关于Mybatis和Jquery操作
  • spring mvc-关于springmvc的问题。
  • jsp-Jsp Jquery 在页面中获得Action传过来的值
  • javascript-ajax 获取表单内容然后传递PHP

【云栖快讯】他,一路保送,但可能不是你想象中的学霸; 他,曾是微软最年轻的技术管理者,挑战带领跨国团队; 他,后来加入阿里,成为阿里西雅图分部的第22名员工; 他,就是阿里通用计算平台负责人关涛! 通过短视频,为你揭晓他的成长和开发计算平台的经历,以及他对未来的展望!  详情请点击

热门推荐


  • 高性能云服务器2折起
  • 云服务器配置
  • 技术资料
  • 云计算
  • 域名
  • shell
  • node.js
  • 问答
  • java
  • mysql
  • C++
  • python
  • jQuery
  • Android
  • asp
  • PHP技巧
  • jQuery教程
  • JavaScript技巧
  • JS
  • SEO
  • sql server
  • mysql教程
  • 前端
  • 技术文集
  • 技术
  • 主题地图
  • A
  • z
  • 云服务器哪家好
  • API
  • 大数据
  • 云安全
  • 云存储
  • 云计算
  • 获取公众号授权失败
  • 兼容性疑难解答
  • path
  • stm32
  • jsonobject
  • product

前三篇


  • bus- STM32F207ZGT中I2C SMBUS总线如何主模式读写?
  • c++-C++MFC获取多个文本内容。。。
  • 编程-parallel_invoke里的两个 任务,如何用Barrier命令同步?

后三篇


  • perl-请问怎么破?。。。。。
  • 大神帮帮忙-如何判断压缩文件的文件类型
  • jsp做图书管理系统项目

(yq.aliyun.com)为您免费提供springmvc jquery传递数组,相关信息,包括
springmvc
的信息
,所有springmvc jquery传递数组,相关内容均不代表的意见!
该页面h5页面的地址是:https://m.aliyun.com/yunqi/wenzhang/show_48858,您可以点击springmvc jquery传递数组,-手机站访问。

  • 推荐产品


云数据库RDS

稳定可靠、可弹性伸缩的在线数据库服务,全球最受欢迎的开源数据库之一

立即查看



云服务器9.9元 限时抢购

6款热门基础云产品6个月免费体验;2款产品1年体验;1款产品2年体验

9.9元 立即购买



云服务器ECS

弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率

立即查看



开发者软件

开发者常用软件,超百款实用软件一站式提供

立即查看

  • 热门标签

cocos2d x
onsenui
easyui-tabs
云计算平台
数据概率
上下有黑边
ios collection
oracle cli...
jenkins创建job报错
路径 配置文件
tomcat应用报错
团队管理工具
赛车
olap4j
获取时间
学习编程
uart
丝印
concurrent
lei

  • 社区推荐

更多>

  • 好东西来了!2017云栖大会400+份重磅资料下载
  • 叮咚!您有一份2017杭州云栖大会参会指南待签收【持续更...
  • 重磅发布背后:POLARDB的中国故事
  • 传统应用层逻辑分库DB迁移阿里云DRDS+RDS分布式数...
  • 海量用户实时定位和圈人 - 团圆社会公益系统(位置寻人\...
  • 京颐CTO宋建康:如何应对系统高度分化异构的挑战,打造不...
  • 经典网络迁移VPC最佳实践
  • 揭秘IPHONE X刷脸认证的技术奥秘
  • 5大场景护航企业成长,实例解析阿里云适应性网络架构
  • 专访阿里云异构计算负责人:异构计算,GPU、FPGA、A...
  • 看了此文的人还看了

  • maven-Maven 项目打包上传服务器的时候出现问题...
  • c语言-(纯C语言)如何监视某个变量的值
  • input type file 获取文件名问题
  • cocopods0.36版本install报错
  • 急需C#矩阵库
  • 给我贡献题目,先谢啦!
  • xpath查询问题初学求点拨
  • 求助:呈现控件时出错
  • 求大神帮忙看看代码。。。错在哪里了……跪谢
  • 完全支持jdk1.5的eclipse的版本?

热门活动更多>

  • 云服务器9.9元抢购

    6款产品 6个月免费体验

    查看详情>

  • 搭建网站/应用首选

    轻量应用服务器 45元/月

    查看详情>

  • 全新云服务器限时2折起

    I/O优化,独享IP,性能提升20%

    查看详情>

热点导航


  • 高性能云服务器2折起
  • 域名查询
  • 网站域名whois查询
  • 云计算
  • 网站服务器价格
  • 域名注册
  • bootstrap table
  • MySQL三节点
  • MySQL读写分离
  • 技术资料
  • 阿里云邀请码
  • product
  • cfbundleidentifier报错
  • echarts地图json数据
  • webstorm开发javaweb
  • 社区
  • 技术
  • 滚动条
  • mysql upgrade
  • ie浏览器不加载样式
  • c primer 第五版
  • java实现opc client
  • post请求
  • 支付宝同步和异步通知
  • product1
  • 三合一云商城建设
  • 软件安装环境配置
  • 技术
  • 钉钉收费
  • 问答
  • 数据算法竞赛
时间: 2024-12-23 04:07:52

springmvc jquery传递数组,的相关文章

SpringMVC框架下JQuery传递并解析Json格式的数据是如何实现的_jquery

json作为一种轻量级的数据交换格式,在前后台数据交换中占据着非常重要的地位.Json的语法非常简单,采用的是键值对表示形式.JSON 可以将 JavaScript 对象中表示的一组数据转换为字符串,然后就可以在函数之间轻松地传递这个字符串,或者在异步应用程序中将字符串从 Web 客户机传递给服务器端程序,也可以从服务器端程序传递json格式的字符串给前端并由前端解释.这个字符串是符合json语法的,而json语法又是 javascript语法的子集,所以javascript很容易解释它,而且

jquery ajax 向后台传递数组参数示例

在JS中向后台传递数组参数,如果数组中放的是对象类型,传递到后台是显示的只能是对象字符串--[object Object],具体的原因及解决方法如下,有类似问题的朋友可以参考下   需求: 在JS中向后台传递数组参数 分析: JS中的数组是弱类型的可以放任何类型(对象.基本类型),但是如果数组中放的是对象类型,传递到后台是显示的只能是对象字符串--[object Object],原因如下: 在后台接收的时候,只能用request来接收,request.getParameterValues()方法

jquery ajax 向后台传递数组参数示例_AJAX相关

需求: 在JS中向后台传递数组参数 分析: JS中的数组是弱类型的可以放任何类型(对象.基本类型),但是如果数组中放的是对象类型,传递到后台是显示的只能是对象字符串--[object Object],原因如下: 在后台接收的时候,只能用request来接收,request.getParameterValues()方法返回的是一个String[],所以,应该是在前台传输的时候调用了对象的toString()方法,那么如果依然想传递对象怎么办?凉拌! 但是可以使用JSON字符串来实现,在后台把JSO

jQuery中通过ajax调用webservice传递数组参数的问题实例详解_jquery

下面通过实例给大家说明比较直观些,更方便大家了解. 本人的项目中通过jquery.ajax调用webservice. 客户端代码如下: $.ajax({ url: "test/xxx.asmx", type: 'POST', dataType: 'xml', timeout: , data: { name: "zhangsan", tags: ["aa", "bb", "cc"] }, error: fun

Jquery对数组的操作技巧

 这篇文章主要介绍了Jquery对数组的操作技巧,需要的朋友可以参考下 1. $.each(array, [callback]) 遍历[常用]    解释: 不同于例遍 jQuery 对象的 $.each() 方法,此方法可用于例遍任何对象(不仅仅是数组哦~). 回调函数拥有两个参数:第一个为对象的成员或数组的索引, 第二个为对应变量或内容. 如果需要退出 each 循环可使回调函数返回 false, 其它返回值将被忽略.  each遍历,相信都不陌生,在平常的事件处理中,是for循环的变体,但

jqueryajax-Jquery Ajax 如何向Sevlet传递数组,在Sevlet里如何接收这个数组

问题描述 Jquery Ajax 如何向Sevlet传递数组,在Sevlet里如何接收这个数组 Jquery Ajax 如何向Sevlet传递数组,在Sevlet里如何接收这个数组! 求源码实例 感激不尽!!! 解决方案 用JSONArray类去接收

mvc模式前台界面向后台传值的问题,如何传递数组。

问题描述 mvc模式前台界面向后台传值的问题,如何传递数组. 在前台页面上得到了一个数组,如何在后台就收并直接调用呢?求大神o(╯□╰)o 解决方案 前台:var str=""1234"";//你的数组值$.Post(""/home/index""{ary:str}function(data){ })后台:string str =request.form[""ary""];//拿到传来的

ios-请教AFNetworking传递数组的问题

问题描述 请教AFNetworking传递数组的问题 现在有一个参数name是一个数组,要如何才能通过post方式提交到后台呢?按照官方文档的去写的但是总是说json格式不对. 解决方案 感谢回答,最后的解决方法如下,最终还是改了源码,不知道为什么官方文档里的使用方法和使用不一样, 修改AFURLRequestSerialization.m,修改方法如下: [mutableQueryStringComponents addObjectsFromArray:AFQueryStringPairsFr

php获取从html表单传递数组的方法_php技巧

本文实例讲述了php获取从html表单传递数组的方法.分享给大家供大家参考.具体如下: 将表单的各个元素的name都设置成同一个数组对象既可以以数组的方式传递表单值 html页面如下: <form method="post" action="arrayformdata.php"> <label>Tags</label> <input type="text" name="tags[]"/