JavaWeb综合笔试题(卷)

内容发布更新时间 : 2025/6/10 20:10:58星期一 下面是文章的全部内容请认真阅读。

41) 在doLogin.jsp中,实现了用户登录的验证,如果用户输入用户名是“admin”,

“0000”,

“session.setAttribute(\”将用户名存储到session中,现要创建loginControl.jsp文件用来实现权限控制,以下选项()可以填入loginControl.jsp实现此功能。(选择一项)

a)

<% %>

b)

<% %>

c)

<% %>

String login=(String)session.getAttribute(\if(login==null||!\

response.sendRedirect(\

Stringlogin=(String)session.getAttribute(\if(login==null||!\

response.sendRedirect(\String login=session.getAttribute(\if(login==null||!\

response.sendRedirect(\

d) <% %>

String login=(String)request.getAttribute(\if(login==null||!\

response.sendRedirect(\

42) 在HTML中,HTML最基本的语法结构是什么()(选择一项)

43) 在使用JDBCAPI实现查询数据时,执行过程中以下接口或类的使用顺序正确的

是()。

(1)Connection (2)DriverManager (3)ResultSet

(4)Statement(选择一项)

a) b)

(1)(2)(3)(4) (2)(1)(3)(4)

a) b) c) d)

c) d)

(2)(1)(4)(3) (3)(2)(1)(4)

44) 可以通过()来重新设置字符编码,从而避免服务器的响应信息在浏览器显示为

乱码。(选择二项)

a) response.setContentType() b) response.setCharacterEncoding() c) response.setPageCoding() d)

response.setCharset()

45) 在HTML中,能够呈现如下图所示效果的选项是()。(选择一项)

a)

b)

:浏

:浏

>>展开全文<<
12@gma联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4 ceshi