google it,you will get lot of url. and i want to give some code for this
index.jsp
-----------------
and my ajax.jsp
-----------------------
Here scriptlets in jsp....please this is deprecated, i want to give a some sample...thats why i paste this...
Hope from this you can understand