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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -