Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

pass value from a editable html table to another jsp

$
0
0

I have a editable table with two columns and a checkbox column:

<FORM NAME="form1" METHOD="POST" action="new2.jsp"><table id="t01"><tr><th>Sel</th><th>Name</th><th>Surname</th></tr><tr><td> <input TYPE=checkbox name=check VALUE="edit"></td><td><div contenteditable>       </div></td><td><div contenteditable>       </div></td></tr></table><INPUT TYPE=submit name=submit Value="Submit"></FORM>

I want to get each edited cell checked value of the HTML TABLE and send them to another jsp.

This is my second jsp file: new2.jsp

<body><%! String[] value;
   value = request.getParameterValues("check");
   if (value != null)
   {
      for (int i = 0; i < value.length; i++)
      {
         out.println ("<b>"+value[i]+"<b>");

      }
   }
   else out.println ("<b>none<b>");
%></body>




Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>