• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet chaining , HTTP tunneling.......

 
Priya Sri
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

I have been asked these questions in an interview.

1) what is meant by servlet chaining ?

2) what is meant by HTTP tunneling ?

3) what is the difference between servlet context and servlet config ?
What are the advantages of them ?

if anybody knows well, clarify me....


Thank u...
bye...
 
unni krishna
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlet chaining - In servlet chaining, the output of the first servlet is send as input to the second servlet and so on. A simple eg - when a request comes in servlet A process the request first and then forwards it to servlet B. Servlet B, after further processing, sends the response to the client.

request ---> Servlet A ---> Servlet B --- > response


HTTP Tunneling - HTTP tunneling is technique of sending Objects through a HTTP request. HTTP protocol is indended to be used for sending HTML text only. But by using HTTP tunneling we can send Java Objects thru HTTP.

ServletContext is the pointer to the container.
ServletConfig contains the configuration information specific to a servlet.
We get ServletContext from servletconfig, servletconfig.getServletContext().


if u have further questions, get in chat with me at unnisworld@yahoo.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic