File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply locked New topic
Author

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
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

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


SCJP2, SCWCD 1.4
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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.

Thanks
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
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.


“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: http://aspose.com/file-tools
 
subject: mock exam question
 
Similar Threads
A question about 'single-threaded mode'
servlet problem
Application level communication
please put the right ans
how to share data between servlet in different webapplication