Servlet data to web page

Hi,

I am working with a web page, in which I have created a form for user input. I would like to send a message to a servlet requesting database status to validate the user input prior performing some client side javascript. I just do not know how to transfer the data returned from the servlet into javascript variables. I do not want to post the data or refresh the page, just use the returned data for javascript performed validation. Any help would be appreciated.

[482 byte] By [RFProgrammera] at [2007-10-2 10:42:10]
# 1
Dup thread, http://forum.java.sun.com/thread.jspa?threadID=702538&tstart=0
slenzia at 2007-7-13 2:50:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...