Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Output

 
Deepak Kumar Jena
Ranch Hand
Posts: 68
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Soumyajit Hazra
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be a little more specific.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Deepak Kumar Jena
Ranch Hand
Posts: 68
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...

 
Deepak Kumar Jena
Ranch Hand
Posts: 68
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic