This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Below i have given my code in jsp which successfully retrieving values from oracle database based on form no. and showing into respective fields.
But now when i edit any value on this form and click on verify button to update edited values in database it updating successfully but not showing quickly after click on verify button it require either go back and come again on this form or click on refresh button in browser then it showing updated values.
So how can i update and shows values quickly.
I think this topic is going to cause Bear Bibeault a heart attack.
First things first, you should not use Java code in JSPs, but even worst you should never access databases from a JSP, it is just wrong! I think it is a good idea to read a bit about MVC and Expression Language and beans and... well, a big bunch of things related on how to make a web application in Java.
But going back to your question, if you want to refresh elements in your page without refreshing the full page what you need is AJAX. Of course to use AJAX you must have your logic in the Server and not in the JSP itself.