简体   繁体   中英

Sending an array to servlet from jsp page and recieving it in servlet

how to send an array to servlet from jsp page and recieving it in servlet?

When i receive an array in servlet end i am not getting any value.

My code:

var arrayJSP = new Array();
//filling some elements in  array

  $.get('ServletSave',{arrayServlet:arrayJSP} );

Servlet side:

String[] arrayServlet=request.getParameterValues("arrayServlet");

Please help with this

Thanks in advance

需要是一个数组

String[] arrayY = request.getParameterValues("arrayY");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM