
提问人:网友f******g
发布时间:2023年2月25日 13:31
[单项选择题]
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++;%>
A.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++;%>

