Store form data in a list jsp -
i have form submits jsp page , want save data list whenever user clicks on submit button, display on jsp page. tried request.getparameter("submit")
returns null value , arraylist overwrites data. should do?
<form action="messages.jsp" target="msgframe" method="post" > <label for="entrer">entrez votre message:</label> <input type="text" name="msg"/> <input type="submit" name="submit" value="envoyer"/> <input type="reset" value="quitter"/> </form>
if want save value of typed message,
<input type="text" name="msg"/>
use :
string msg = request.getparameter("msg")
Comments
Post a Comment