当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

Fordebuggingpurposes youneedtorecordhowmanytimesagivenJSPisinvokedbeforetheuser’ssessionha


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

参考答案
您可能感兴趣的试题
    暂无相关推荐