| 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: 3673
|
|
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]
|
 |
 |
|
|
subject: Marcus Green SCWCD Chapter Quizzes
|
|
|