题目内容

约翰多半讲了真话,他这个人很可靠。

A. John can told the truth; he is a trustworthy man.
B. John might not told the truth; he is a trustworthy man.
C. John probably told the truth; he is a trustworthy man.
D. John couldn't told the truth; he is a trustworthy man.

查看答案
更多问题

她不可能真的病了。

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

答案查题题库