how to get the button value from jsp to servlet

Posted by kawtousse on Stack Overflow See other posts from Stack Overflow or by kawtousse
Published on 2010-05-26T11:18:58Z Indexed on 2010/05/26 11:21 UTC
Read the original article Hit count: 138

Filed under:

hi, how to get the button value from jsp to servlet in jsp:

<input type=button name=bt value=gi onclick="document.frm.submit();"></input>

and in servlet like that:

String gi =request.getParameter("bt");
    System.out.print("button value" +gi);

result=null

thanks

© Stack Overflow or respective owner

Related posts about j2ee