【单选题】在JSP中要使用user包中的User类,则以下写法正确的是().
A. “user”class=“user.User” scope=“page”/> B. “user.Use.class”/> C. “user”class=“user.User”/> D. “user”class=“user” import=“user.* ”/>
A. “user”class=“user.User” scope=“page”/> B. “user.Use.class”/> C. “user”class=“user.User”/> D. “user”class=“user” import=“user.* ”/>
举一反三
- 将字段User改为user需要编写| rename User user
- 有三个JSP文件如下 1.jsp <a href="2.jsp?user=svse">To 2.jsp</a> 2.jsp <%String user=request.getParameter("user");%> <jsp:forward page="3.jsp"/> 3.jsp <%=request.getParameter("user")%> 页面中输出
- 【多选题】下面语句可以实现查询user表中“zhangsan”的user,password,logins信息的是 A. select logins,user,password from user where name like ’%zhangsan%’; B. select user,password,logins, from user where name like ’zhangsan’; C. select password,logins,user from user where name=’zhangsan’ limit 1; D. select user,password,logins from user where name=’zhangsan’;
- test.jsp文件中有如下一行代码: <%jsp:useBean id=”user” scope=”__” class=”com.UserBean”> user对象可以作用于整个应用程序,下划线中应添入()
- 已知,存在 QueryRunner对象 runner , SQL语句: String sql = "select * from user where id=?"; 下面操作中,能实现查询指定记录的选项是() A: User user=(User)runner.query(sql, new BeanListHandler(User.class), new Object[]{id}); B: User user=(User)runner.query(sql, new BeanHandler(User.class)); C: User user=(User)runner.query(sql, new BeanListHandler(User.class), id); D: User user=(User)runner.query(sql, new BeanHandler(User.class), new Object[]{id});