aspose file tools*
The moose likes Servlets and the fly likes Servlet Output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Output" Watch "Servlet Output" New topic
Author

Servlet Output

Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

Sending outputs from a servlet as a html page response back to the client or forwarding it to the next resource, what else we can do with the output and how?


dkj4jdk
Soumyajit Hazra
Ranch Hand

Joined: Jun 26, 2007
Posts: 136
Be a little more specific.


Java Programmer | SCJP 1.5 | SCWCD 1.4
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

Deepak Kumar Jena wrote:Sending outputs from a servlet as a html page response back to the client or forwarding it to the next resource, what else we can do with the output and how?

That's not with the servlet output!


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

We can send the output from a servlet in the form of a HTML page, also we can send/forward it to the next resource present in the same web application. What else we can do with the output and how?
Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

After processing a request in a servlet, we can either pass the output to another servlet or we can send the output back to the client in the form of html/xml. What else we can do with the output?
Phoenix FireBird
Greenhorn

Joined: Oct 15, 2010
Posts: 3
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...



VERITAS VOS LIBERABIT
(The truth shall set you free)
Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

Phoenix, I don't have any intension to test anyone's ability. I had to face this question in an interview. An even my answer was same (as mentioned by you and me), but the interviewer had keep on asking me "what else?". In the end of the interview when I asked her about the answer, she asked me to search for it in google.
Chetan Natu
Greenhorn

Joined: Dec 03, 2005
Posts: 19
Deepak Kumar Jena wrote:Phoenix, I don't have any intension to test anyone's ability. I had to face this question in an interview. An even my answer was same (as mentioned by you and me), but the interviewer had keep on asking me "what else?". In the end of the interview when I asked her about the answer, she asked me to search for it in google.


How I hate dumb interviewers?

And sorry if I appeared to be questioning your motives, I was actually confused as to why would somebody want to know more than that... Sorry if I gave you that impression.


<edit> sorry name change policy!!! I am still phoenix under a different guise. </edit>


Never Remember the failure
Never Forget the mistake
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet Output