|
Hi friend,
u can use the response.getwriter,write(String value);in the servlet.
in the jsp page after response is coming,then u write the code at the ajax code.
var s=xmlHttp.responseText;
var tem=s.split("+");
document.getElementById("name").innerHTML=tem[0];
and to display the name in the page,u can write the code
<div id="name"></div>
|