Originally Posted by
haiforhussain
hi freddie
Can u pls explain me how to pass a data from HTML page to JSP ... and how to get the data from jsp using AJAX ....
cheers
hussain
I think Freddie gave you a pretty decent example of how to implement AJAX.... You see you need to replace the string value "servletname" with the servlet you wish to handle you request. Pass params to the servlet with the url first (its easier) capture them on the servlet with request.getParameter calls. When you have your values, do your workings and write the response back.... In that way you will have successfully passed your values back to the jsp\servlet without submitting the form and posting back to your own page.