Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

usemyscripts.jspuserdetails_validator.jsvalidate.jsp

Similar to index.jsp, just brings up the home page

Invoke using

http://localhost:8080/simpleAjaxApp/usemyscripts.jsp

Reads data from the text field, sends it to the server,

handles response from server and displays results on web page

Look at the functions, they represent the heart of this script

  • validateUserId()
  • processRequest()

Accepts data from the web form, reads the user ID

checks the ID against a fixed ID value using some

java code, sends back a simple piece of HTML in

response

...