题目内容

她不可能真的病了。

A. She might not be really ill.
B. She propablly not be really ill.
C. She maybe not be really ill.
D. She can't be really ill.

查看答案
更多问题

不可能会下雨。

A. It is not perhaps that it will rain.
B. It is unlikely that it will rain.
C. It is not likely that it will rain.
D. It is not probably that it will rain.

页面重定向问题:从Servlet中传递值作为重定向页面welcome.jsp的请求参数,由welcome.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="WUIT";response.sendRedirect("welcome.jsp?school="+school)}protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {}}阅读Output .java代码,完成welcome.jsp代码,使得Output这个Servlet在服务端运行时,能通过重定向技术将welcome.jsp作为对客户端的响应,且页面内容为:WUIT

A. WUIT
B. school
C. <%=response.sendRedirect("welcome.jsp?school="+school)%>
D. <%=request.getParameter("school") %>

页面重定向问题:传递表单数据到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?);}protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {}}welcome.jsp:<%=request.getParameter("school") %>

A. school="+schoolname
B. school="+school
C. schoolname="+school
D. schoolname="+schoolname

页面重定向问题(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();

答案查题题库