You are building a Front Controller using a JSP page and you need to determine if the user’s
session has NOT been created yet and perform some special processing for this case. Which
scriptlet code snippet will perform this test?
A.
<% if ( request.getSession(false) == null ) {
// special processing
} %>
B.
<% if ( request.getHttpSession(false) == null ) {
// special processing
} %>
C.
<% if ( requestObject.getSession(false) == null ) {
// special processing
} %>
D.
<% if ( requestObject.getHttpSession(false) == null ) {
// special processing
} %>
Explanation: