三级三级网络技术2006年春浙江省高等学校&计算机等级考试试卷(三级 网络技术)
题目内容

Save_Student.jsp页面的代码如下:<%@ page language="java" import="jav

2024-07-09

A.sql.*,javax.activation.*,com.jspsmart.upload.*"%><%@ include file=" config/conn.jsp"%><%@ include file=" config/include.jsp "%>String S_num=request.getParameter ("S_num");String S_name=request.getParameter ("S_name");String S_birthday=request.getParameter ("S_birthday");String S_sex=request.getParameter ("S_sex");String S_dept=request.getParameter ("S_dept");String S_class=request.getParameter ("S_class");String S_addr=request.getParameter ("S_addr");int S_age= ( 48 ) ;rs=stmt.executeQuery("select * from Student where ( 49 ) ");if (rs.next()){out.println(“该记录已存在”);response.sendRedirect("Add_Student.jsp");}else{ ( 50 ) ;out.println(“记录保存成功”);response.sendRedirect("Add_Student.jsp"); }【候选答案】A.Double.valueOf (request.getParameter("S_age"))

B.Integer.parseInt(request.getParameter("S_age"))

C.Boolean.valueOf (request.getParameter("S_age") )

D.*"%><%@ include file=" config/conn.jsp"%><%@ include file=" config/includ

E.jsp "%>String S_num=request.getParameter ("S_num");String S_name=request.getParameter ("S_name");String S_birthday=request.getParameter ("S_birthday");String S_sex=request.getParameter ("S_sex");String S_dept=request.getParameter ("S_dept");String S_class=request.getParameter ("S_class");String S_addr=request.getParameter ("S_addr");int S_age= ( 48 ) ;rs=stmt.executeQuery("select * from Student where ( 49 ) ");if (rs.next()){out.println(“该记录已存在”);response.sendRedirect("Add_Student.jsp");}else{ ( 50 ) ;out.println(“记录保存成功”);response.sendRedirect("Add_Student.jsp"); }【候选答案】A.Double.valueOf (request.getParameter("S_age"))B.Integer.parseInt(request.getParameter("S_age"))C.Boolean.valueOf (request.getParameter("S_age") )D.request.getParameter("S_age")

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端