itgle.com

Fordebuggingpurposes,youneedtorecordhowmanytimesagivenJSPisinvokedbeforetheuser’ssessionhasbeencreated.TheJSP’sdestroymethodstoresthisinformationtoadatabase.WhichJSPcodesnippetkeepstrackofthiscountforthelifetimeoftheJSPpage?()A.<%!intcount=0;%><%if(reques

题目

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++;%>


相似考题