网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

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++;% ” 相关考题