Is it possible to store array of values in cookies during for loop in JSP? -


is possible store array of values in cookies during loop.if yes how , if no how can sort problem store array elements in cookie??

following code trying:

<%     string check[] = request.getparametervalues("chk");     string a[] = " ";     if (check != null) { %> <h4 style="color:white"> <%     (int = 0; < check.length; i++) {         out.println(check[i]);         a[i] = check[i];     }     cookie c1 = new cookie(chks, check[i]);     response.addcookie(c1); } %> </h4>  <a href="basket.jsp" style="text-decoration: none;color:white">proceed</a> 


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -