lundi 29 décembre 2014

Form communication with backingbean in jsp


I want to communicate form button in jsp with backingbean and want to insert data in database using hibernate after clicking the button.i have tried jsf but its not working well with my javascript code. what way should i use to do what i want .help anybody.thanks in advance.i want to call backingbean function which i have shown below in code. I have mentioned my jsp code and backingbean function. my jsp page form:



<form id="map_form">
<input type="text" name="vertices" value="" id="vertices" style="width:75em;height: 5em;" />
<input type="button" name="save" value="Save!" id="save" />
</form>


backingbean function:



public void funx() {
System.out.println("println in jsp");
System.out.println("str:"+str);
}




Aucun commentaire:

Enregistrer un commentaire