First the answer (apart from the ones you already know):
You can hold the output with the servlet and do nothing. (Why would you want to do that, haven't the faintest of ideas)
You can store the output in database (what would you do with, haven't got the faintest of ideas)
Now the question:
Deepak, what exactly did you have in mind when you asked the question. Are you asking a question or is it a quiz for the rest of us? If you let us know the end-objective, we might be able to give you some more thoughts, I think...