题目内容

使用response对象进行网页重定向时,要使用的是( )方法?

A. getRequestDispatcher();
B. forward();
C. sendRedirect();
D. 以上都不对;

查看答案
更多问题

如果要把一个用户名tome保存在application对象里,则下列语句正确的是( )

A. application.setAttribute(name, tome);
B. application.setAttribute("name","tome");
C. application.setAttribute("tome",name);
D. application.setAttribute("tome","name");

jsp的隐式注释正确的表达方式为( )

A. //注释内容;
B. ;
C. <%--注释内容--%>;
D. /*注释内容*/;

如果要为网站编写统计当前访问量一个计数器程序,最好采用JSP中的( )对象

A. page;
B. session;
C. request;
D. application;

在JSP中要使用mypack包中的User类,则以下写法正确的是( )

A. ;
B. ;
C. ;
D. ;

答案查题题库