its checking each and every record in the database.for example if i pass the second record to the program ( witch is username = Raza password =200) and when I run the program.That, and the full page submit you're doing, is why you only see your "JSON result" and not your grid page. If possible, attach a file containing these items and I'll be glad to take a look. Also, lowercase class file names violate Java naming conventions and the use of the 'default' package is discouraged. An easy one to start off understanding spring and its integration with extjs. Consider refactoring the 'register' Servlet class file to App.servlet. My form is below: Here I print the JSON result on success and failure. But,when I run the application it just prints the json result instead of returning it back to the success/failure function in the js file.
In this section we will show you how to create an option panel to handle your username and password. The 'Message-Digest Algorithm 5' is a cryptographic hash-function that was invented by Roland L. To use MD5 in our application we can use some features of Java. But we have a problem with our created options panel. Your entered password will now be created as a MD5-hash.
Regards Sach The first problem I see is that you've set your Form panel to standard Submit: true, yet you're trying to handle an Ajax-style result. I tried changing the content type to ("application/json"), but did not work. This is the code from my Validation servlet(works fine standalone)callbacks are working But,here in the callback I want it to redirect it to the grid.html(A page where I display a grid).
A "standard" submit is the old-school, full-page redirect style of submitting, which appears to not be what you want. Instead of redirecting it goes in the failure part and prints the JSON returned by the 2nd servlet(which fetches grid data.). What want is on success the page to be redirected to the grid page and display the grid with content. Also marked your comments and made the changes regarding files.
Next, the match() method of a string object is used to match the said regular expression against the input value.
=.*[A-Z]) # must contains one uppercase characters (?