how to store the retrived data from database into th especified text field
The answer is very simple and easy. It is one of the very first things you learn when someone starts with jsp. Which is why I believe that you rushed into writing JSPs before giving some time to do some serious studying.
So the answer is this:
String data = ....
If you can't understand the above you need to take some time to sudy on your own and come back with more specific questions.
If you already know the above again: ask more specific questions.