题目内容

(1)在a.jsp中有代码片段如下:loginName: (2) 在b.jsp中加入下列()代码,可以输出在a.jsp页面上输入的loginName的值。

A. <%= (String) request.getParameter("loginName") %>
B. <%= (String) request.getAttribute("loginName") %>
C. <% String name = request.getParameter("loginname"); out.println(name); %>
D. <% String name = request.getAttribute("loginname"); out.println(name); %>

查看答案
更多问题

在session中写入和读取数据的方法是()。

A. setParameter()和getParameter()
B. setAttribute()和getAttribute()
C. addAttribute()和getAttribute()
D. set()和get()

JSP的九大内置对象包括下面哪些对象?

A. response
B. session
C. config
D. Servlet

下列request对象和response对象的使用正确的是()。

A. request.getRequestDispatcher("index.jsp").forward();
B. response.sendRedirect("index.jsp");
C. request.getParameterValues("name");
D. response.setContentType("text/html; charset=gbk");

Part I 英译汉 (每题10分)We recognize that China's long-term modernization program understandably and necessarily emphasizes economic growth.All this had come to an end in 1905 when the medical mission was dissolved and several of Mother's colleagues were killed in the uprising.I had been puzzling over the problem for over an hour without any result, when all at once the solution flashed across my mind.At present people have a tendency to choose the safety of the middle-ground reply.This kind of new medicine is effective but unfortunately of no actual value as it is not soluble in water.Suddenly the door bursts open and the Time Traveler appears, dirty, disheveled, and bedraggled, with a nusty cut on his chin.Part II 汉译英 (每题10分)1. 我在学堂里坐着,心里也闷,不如给他家放牛,倒快活些。2. 应当承认,每个民族都有它的长处,不然它为什么能存在?为什么能发展?3. 在中国要是没有自行车,生活是难以想象的,可是没有多少年以前,人们还是把自行车看成是奢侈品,很多人都买不起,再说,自行车也供不应求。4. 从那时起到现在,已经整整五十年了。这是光辉的五十年,不平凡的五十年。

答案查题题库