This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Marcus Green SCWCD Chapter Quizzes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Marcus Green SCWCD Chapter Quizzes" Watch "Marcus Green SCWCD Chapter Quizzes" New topic
Author

Marcus Green SCWCD Chapter Quizzes

Niall Mullan
Greenhorn

Joined: Oct 31, 2008
Posts: 6
Hi there,

Apologies if this is covered somewhere else, I had a couple of questions in relation to some of the answers on these quizzes (detailed below), anyone know how to contact the man himself so as to feedback ?

I can't seem to post on the forums in the website itself @examulator, and reply email is a black hole so thought I would try here.

Thanks,
Mully

*******************
Questions I had were;

Web Container Model Quiz
Q3 Answer B is listed as correct --
B. A session attribute will, by default be visible to all subsequent requests from the same client
Is this not invalidated though if the session expires ?

Q6 Answer B is listed as correct --
B. Filters are called in the order they appear in the deployment descriptor
I thought that it depended on the order and the matching pattern i.e. a filter using a servlet-name would alway be called after any using a url-pattern regardless of the declaration order in the DD. While the DD order does matter its just that url-pattern matched filters are put before the servlet-name matched ones.

Preview Structure and Deployment Quiz
Q2 Answer E is listed as correct --
E. The deployment descriptor must have the name WEB.XML
I tried this and with the deployment descriptor in uppercase i.e. WEB.XML, none of my servlets were found by Tomcat -- does this file not have to be web.xml ??
*******************


SCJP 5.0
SCWCD
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3815

Niall Mullan wrote:
Web Container Model Quiz
Q3 Answer B is listed as correct --
B. A session attribute will, by default be visible to all subsequent requests from the same client
Is this not invalidated though if the session expires ?

Question may look bit unclear but I think it's assuming that session has not expired (by "all subsequent requests from the same client ")

Q6 Answer B is listed as correct --
B. Filters are called in the order they appear in the deployment descriptor
I thought that it depended on the order and the matching pattern i.e. a filter using a servlet-name would alway be called after any using a url-pattern regardless of the declaration order in the DD. While the DD order does matter its just that url-pattern matched filters are put before the servlet-name matched ones.

With the constraint that filters mapped by <url-pattern> are called before <servlet-name> they are called the order they have defined in the DD.

Preview Structure and Deployment Quiz
Q2 Answer E is listed as correct --
E. The deployment descriptor must have the name WEB.XML
I tried this and with the deployment descriptor in uppercase i.e. WEB.XML, none of my servlets were found by Tomcat -- does this file not have to be web.xml ??
*******************

Yes, It should be web.xml.

SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Marcus Green SCWCD Chapter Quizzes
 
Similar Threads
About Filters
Which of the following statements are true? and Why?
doubt in chapter end quiz
Mock Exam Doubts
order of filter mapping