This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes mock question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "mock question" Watch "mock question" New topic

mock question

friso jonge
Ranch Hand

Joined: Aug 06, 2002
Posts: 41
which of the folowing is most likely false ?
a) a seperate RequestDispatcher is associated with each request object.
b) request attributes are indirectly linked to the RequestDispatcher object
c) a RequestDispatcher manages threading issues associated with req.attributes of each request object.
d) the requestDispatcher is a wrapper for the target servlet
please post your votes for the answers, and explain.
book answer:
A - the reqdispatcher object can be obtained in two ways. One way is throught the request object, and the other through the servletContext. Consequently it is not tightly coupled with the request object.
(hmmm, doesn't that answer another question ?)
Vedhas Pitkar
Ranch Hand

Joined: Jan 27, 2001
Posts: 445
I think it can be C as well.How can a RequestDispatcher manage threading issues?
I agree. Here's the link:
subject: mock question
Similar Threads
Again Session:JWeb+
RequestDispatcher.include a jspx fragment from a filter
Is it possible to use: RequestDispatcher view =request.getRequestDispatcher("")
What is the diff between a RequestDispatcher object obtained from Request & Context