Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

include + forward question

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

"Servlet A" forwards to "Servlet B", wich includes "Servlet C", wich forwards to "Servlet D", wich includes "Servlet E".

"A -> B <- C -> D <- E"

When "Servlet A" is requested , wich servlets might contribute to the final response??

have fun yourselves...let�s discuss it.

Tks.
 
shweta bulbule
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Servlet A" forwards to "Servlet B"---> now in B
wich includes "Servlet C", wich forwards to "Servlet D"-->now in D
wich includes "Servlet E"-->now D+E

so the final servelet will be servlet D + contents of servlet E
i.e. ("D+E")

this was a funny questions, had fun thanks.
 
Bhavna Jharbade
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Felipe Pittella:
Hi folks,

"Servlet A" forwards to "Servlet B", wich includes "Servlet C", wich forwards to "Servlet D", wich includes "Servlet E".

"A -> B <- C -> D <- E"

When "Servlet A" is requested , wich servlets might contribute to the final response??

have fun yourselves...let�s discuss it.

Tks.


Hi all
A forwards to B =>response has contents of B
B includes C => response has both B & c
C forwards to D => response will have D
D includes E => response will have D & E

So i think final response will include D & E.

Please correct me if i am wrong.

Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic