• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet Output

 
Ranch Hand
Posts: 71
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Be a little more specific.
 
Ranch Hand
Posts: 2066
IntelliJ IDE Clojure Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 71
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 71
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 71
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
reply
    Bookmark Topic Watch Topic
  • New Topic