HOW TO GET THE XMLHTTPREQUEST AND HOW TO RESPONCE THE VALUE TO XML

HI,I AM NEW TO AJAX... AND I WANT TO PASS THE XMLREQUEST TO THE SERVLET, IN SERVLET HOW TO GET THE XMLHTTP REQUEST AND HOW TO RESPOND TO THE XML FROM THE SERVLET AFTER PROCESSING...!pLZ HELPthks in advance..!
[236 byte] By [dhil_sa] at [2007-10-3 0:54:01]
# 1

If you are new to Ajax I suggest you lookup a tutorial before trying to do anything with it, because judging by your question you are making some very bad assumptions.

The answer is that using Ajax you do an asynchronous (= in the background) request to your servlet. This servlet can output formatted data such as XML that the ajax call will then process and use to update the GUI. For example you could change the content of a div by setting the innerHTML property, or you could fill a select box with values taken from the servlet response. This all will happen without the need for a new browser request.

Note that there are loads of Ajax tutorials on the net, most of them very copy/pasteable.

gimbal2a at 2007-7-14 17:49:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
thanks 4 u suggestion..!
dhil_sa at 2007-7-14 17:49:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...