Login.jsp为登录页面,表单代码如下:Index.jsp中直接显示用户名,以下哪种代码正确()
A. ${requestScope.name}
B. <%=name%>
C. ${param.name}
D. <%=param.name%>
查看答案
考虑下面 JSP文件代码片断:/HTML>以下()代码片断放置在test2.jsp中不会导致错误
A.
B.
C. <%=request.getParameter(“username”)%>
D. <%=request.getAttribute(“username”)%>
JSP中,()类型的()方法用于得到会话
A. HttpServletRequest、 getSession
B. HttpServletResponse、 newSession
C. HtttpSession、 newInstance
D. HttpSession、 getSession
以下代码执行效果为:
A. 12345
B. iiiii
C. 15
D. 编译错误
在 JSP中可动态导入其它页面的标签是
A. <%include/>
B. <%@ include%>
C.
D.