This post originated from an RSS feed registered with Java Buzz
by Goldy Lukka.
Original Post: Saving Data in a Servlet
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
Many times you want to save some data in a servlet temporarily or till the application lasts. One of the reason could be to collect and save some data that needs to be flushed to the user after some processing is done or you want to send a large data to another servlet/jsp in your web application.
This code sample from java almanac shows you ways to save data in a servlet. Based on the scope of data to be saved, the following mechanisms could be used.