Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes mock exam question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply locked New topic

mock exam question

rehans oberoi
Ranch Hand

Joined: Dec 06, 2005
Posts: 174
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

hi ranchers
please tell the answer
according to me answer must be 4 or 5
Sai Patnala
Ranch Hand

Joined: Jan 09, 2002
Posts: 60
This has to be 4. HttpServletRequest.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

I would say 4 too.
In the request, the information will not be visible to other servlets.

[My Blog]
All roads lead to JavaRanch
Chidanand Chauhan
Ranch Hand

Joined: Nov 10, 2005
Posts: 77
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.

Chidanand chauhan
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
check out this thread

Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783

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.

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
I agree. Here's the link:
subject: mock exam question
It's not a secret anymore!