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

mock exam question

 
rehans oberoi
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Report post to moderator
servlet A receives a request that it forward to servlet B
within another web application in the same web container
servlet A need to share data with servlet B and data must be
not visible to other servlets in A's web application
in which object can the data that A shares with B be stored

1. http session
2.servletconfig
3.servletcontext
4httpservletrequest
5httpservletresponse

hi ranchers
please tell the answer
according to me answer must be 4 or 5
 
Sai Patnala
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Report post to moderator
This has to be 4. HttpServletRequest.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
I would say 4 too.
In the request, the information will not be visible to other servlets.
 
Chidanand Chauhan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Report post to moderator
It should be the 4th one(HttpServletRequest), because only the servlet who is handling the request will be able to get the data through HttpServletRequest.

Thanks
Chidanand chauhan
 
Vishnu Prakash
Ranch Hand
Posts: 1026
 
Paul Bourdeaux
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
  • Report post to moderator
rehans,

I replied to your earlier topic, which was exactly the same as this one but with a different title, and asked you not to cross post. Deleting that last topic (along with my response) and posting it again not only wastes the time of ranchers who are trying to help you out, but is also extremely rude.
 
    Bookmark Topic Watch Topic
  • New Topic