1.The default value for body_content element of tag library descriptor is a:empty b.jsp c.tagdependent d.none of them the answer is b But my answer is d From the specification,the default value is "JSP" Is the "jsp" equals "JSP" here? I know the xml is case-sensitive. Why? 2.which scope of the setMaxInactiveInterval() method,the session that this method is called or all the sessions after this method called? please explain these for me. Thanks a lot.
1) Strictly speaking, the default is "JSP", according to the Sun's Spec. However some containers accept both "jsp" and "JSP". This mock question is not designed very well. In the real exam, you will see "JSP" instead of "jsp". So don't take this mock question too seriously just stick to what you think; 2) setMaxInactiveInterval is for THE one session variable not for all the sessions. Eg. you create two sessions called firstSession, secondSession, and then firstSession.setMaxInactiveInterval(60*30), so the MaxInactiveInterval is 30 minutes for the firstSession, this does not affect the MaxInactiveInterval for the secondSession. Hope this helps,