Please don't cross-post. It becomes hard to follow the thread of a question if it exists in more than one topic. Does my post in your other identical topic not answer your question? If not please elaborate what you don't understand in your original topic.
I am facing problem connecting to a database through a servlet or a JSP application.To store data into the database from the application and to retrive.cross posting that question was by mistake.i will take care not to repeat it