Younes.
no time to check it, but this should be an html problem. Buttons appear only inside of form tag. You have a form tag, but it is not closed:
out.println("<form method=post action='remplirform'");
should be:
out.println("<form method=post action='remplirform'>");
Axel