aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt from HFSJ regarding request dispatcher question from ch5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt from HFSJ regarding request dispatcher question from ch5" Watch "Doubt from HFSJ regarding request dispatcher question from ch5" New topic
Author

Doubt from HFSJ regarding request dispatcher question from ch5

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
Hello,

In the answer given for following question is A and E . My doubt is why not E also ? The correct answer should be A,D and E right?Please correct me if I am wrong . I reffered specs it says original query string can be accessed bot by getQuery string and by calling getAttribute(“javax.servlet.forward.query_string”) on the ServletRequest. But why in the book D is not right answer? Please explain

Ques 12. Which statements about RequestDispatcher are true (where applicable, assume the RequestDispatcher was not obtained via a call to getNamedDispatcher())? (Choose all that apply.)
A. A RequestDispatcher can be used to forward a request to another servlet.
B. The only method in the RequestDispatcher interface is forward().
C. Parameters specified in the query string used to create a RequestDispatcher are not forwarded by the forward() method.
D. The servlet to which a request is forwarded may access the original query string by calling getQueryString() on the HttpServletRequest.
E. The servlet to which a request is forwarded may access the original query string by calling getAttribute(“javax.servlet.forward.query_string”) on the ServletRequest.

Thanks
Veena


SCJP1.4
"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt from HFSJ regarding request dispatcher question from ch5