• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Realtime Validation with Ajax

 
J Das
Ranch Hand
Posts: 83
Firefox Browser Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers.. I need to validate my forms in my web application in realtime (using Ajax), I searched the web and found the following suitable solution for my query...




The following is the servlet..



Actually i need the same thing to be done with database , but what the above example shows is with a Hashmap... anyone who can help me in this ?? I will be very grateful.. Thank You all in advance..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I removed the copyright notice from your servlet code because it was making the page too wide. Please take care when posting code to make sure that lines break in a reasonable width.

And, why are you putting a Sun copyright on your code?
 
J Das
Ranch Hand
Posts: 83
Firefox Browser Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:I removed the copyright notice from your servlet code because it was making the page too wide. Please take care when posting code to make sure that lines break in a reasonable width.

And, why are you putting a Sun copyright on your code?


Ooops ! Sorry, my mistake..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, but that is way too much code to look at. Especially without any sort of explanation as to what you are actually trying to accomplish.

Please post an SSCCE and a description of what issues you are having.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P.S. My recommendation is to use jQuery with the Validation plugin.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic