How do process checkbox in the grilled?



  • I'm writing web service. I use java,servlet,jetty,freemarker,hibernate,mysql.

    In html, the file contains a plate with several fields (tr) with a checkbox in the first column.

    The idea is:

    1. I'll put a flag on some field.
    2. My earring sees that the checkbox has somehow changed (or added a new class, or data---* added, hz what)
    3. I'm starting to operate with the data from the chosen line.

    Can you tell me how to do this?

    If in the process of communicating with you, I'll add the code or something else to the public. There's no solution to what we can do, so as long as I'm still looking in the google.



  • Servette won't be able to track the changes in shape on your own, you'll have to send the uniform.

    Example:

    <form action="${pageContext.request.contextPath}/myservlet" method="post">
      <input type="radio" name="radio1" />
      <input type="submit" value="submit" />
    </form>
    

    In your heart, /myservlet There's only enough left to accept the variable.

    request.getParameter("radio1")
    

    [UPD]
    There's something like this going to happen.

    <form>
      <table>
       <tr>
         <td>
          <input type="text" name="someText">
         </td>
         <td>
          <input type="radio" name="istextChaned">
         </td>
       </tr>
     </table>
    </form>
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2