File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Realtime Validation with Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Realtime Validation with Ajax" Watch "Realtime Validation with Ajax" New topic
Author

Realtime Validation with Ajax

J Das
Ranch Hand

Joined: Jul 27, 2011
Posts: 83

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

Joined: Jan 10, 2002
Posts: 61205
    
  66

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
J Das
Ranch Hand

Joined: Jul 27, 2011
Posts: 83

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

Joined: Jan 10, 2002
Posts: 61205
    
  66

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

Joined: Jan 10, 2002
Posts: 61205
    
  66

P.S. My recommendation is to use jQuery with the Validation plugin.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Realtime Validation with Ajax