pass value to servlet from a hidden input type
Posted
by kawtousse
on Stack Overflow
See other posts from Stack Overflow
or by kawtousse
Published on 2010-05-25T12:45:03Z
Indexed on
2010/05/25
13:41 UTC
Read the original article
Hit count: 190
I am trying to pass the parameter called value
in the hidden input type to my servlet.
It is like that:
retour.append("<input type=\"hidden\" id=\"id_" + nomTab + "_" + compteur + "\" value=\"" + object.getIdDailyTimeSheet() + "\"/>");
retour.append("<button id=edit name=edit type=submit onClick= editarow()>");
retour.append("<img src=edit.gif />");
retour.append("</button>");
retour.append("</td>");
But the method get parameter recommend a name to be able to get the value here.
So how can I deal with it? Here I want to pass to the servlet the value of object.getIdDailyTimeSheet()
.
© Stack Overflow or respective owner