Fordebuggingpurposes,youneedtorecordhowmanytimesagivenJSPisinvokedbeforetheuser’ssessionhasbeencreated.TheJSP’sdestroymethodstoresthisinformationtoadatabase.WhichJSPcodesnippetkeepstrackofthiscountforthelifetimeoftheJSPpage?()A.%!intcount=0;%%if(request.getSession(false)==null)count++;%B.%@intcount=0;%.%if(request.getSession(false)==null)count++;%C.%intcount=0;.if(request.getSession(false)==null)count++;%D.%@intcount=0;.if(request.getSession(false)==null)count++;%E.%!intcount=0;.if(request.getSession(false)==null)count++;%

Fordebuggingpurposes,youneedtorecordhowmanytimesagivenJSPisinvokedbeforetheuser’ssessionhasbeencreated.TheJSP’sdestroymethodstoresthisinformationtoadatabase.WhichJSPcodesnippetkeepstrackofthiscountforthelifetimeoftheJSPpage?()

A.<%!intcount=0;%><%if(request.getSession(false)==null)count++;%>

B.<%@intcount=0;%>.<%if(request.getSession(false)==null)count++;%>

C.<%intcount=0;.if(request.getSession(false)==null)count++;%>

D.<%@intcount=0;.if(request.getSession(false)==null)count++;%>

E.<%!intcount=0;.if(request.getSession(false)==null)count++;%>


相关考题: