I want to insert the data from multiple
jsp pages into the database.
So i had used the
java beans to retain the values.
Now i want to insert the data when the last jsp page's Save button is clicked.
So i wrote the insert query in one method from another class.
And that method is called in that last jsp page.
But the problem is that when that last page is loaded, immediately all the data is inserted into the database, before clicking the Save button..