题目内容

页面重定向问题(Serlvet负责逻辑运算,jsp负责输入输出):传递表单数据到Serlvet,然后在Serlvet中将接收的表单数据去计算它的字符长度,在页面重定向时作为页面welcome.jsp的请求参数,由welcome.jsp负责显示。仔细阅读下列程序:input.jsp:
Output.java:import java.io.IOException;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;public class Output extends HttpServlet {private static final long serialVersionUID = 1L;public Output() {// TODO Auto-generated constructor stub}protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {String school=request.getParameter("schoolname");response.sendRedirect("welcome.jsp?len="+len);}protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {}}welcome.jsp:输出长度值<%=request.getParameter("len") %>

A. len.length();
B. int schoollen=school.length();
C. int len = len.length();
D. int len = school.length();

查看答案
更多问题

常用于凸轮轮廓的设计方法是

A. 解析法
B. 反转法
C. 范成法
D. 成形法

内燃机配气机构汽门顶杆的行程很短,所凸轮的形式是

A. 盘状凸轮
B. 圆柱凸轮
C. 移动凸轮
D. A,B,C皆是

凸轮机构从动件运动冲击最大的运动规律是

A. 等速运动
B. 匀加速匀减速运动
C. .简谐运动
D. .余弦加速度运动

下列很少用于凸轮生产的材料是

A. 普通碳素结构钢
B. 优质灰口铸铁
C. 优质碳素结构钢
D. 合金结构钢

答案查题题库