Thread: AJAX in JSP
View Single Post
  #8 (permalink)  
Old 07-01-2008, 02:13 PM
pao pao is offline
Member
 
Join Date: Jun 2008
Posts: 41
pao is on a distinguished road
Quote:
Originally Posted by haiforhussain View Post
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.
Reply With Quote