网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有两个页面a.jsp和b.jsp,要从a.jsp传值到b.jsp有几种方法?分别是什么?
参考答案
更多 “ 有两个页面a.jsp和b.jsp,要从a.jsp传值到b.jsp有几种方法?分别是什么? ” 相关考题
考题
WhichJSPstandardactioncanbeusedtoimportcontentfromaresourcecalledfoo.jsp?()
A.jsp:importfile=’foo.jsp’/B.jsp:importpage=’foo.jsp’/C.jsp:includepage=’foo.jsp’/D.jsp:includefile=’foo.jsp’/
考题
有三个页面,a.jsp,b.jsp和c.jsp,流程是:a.jsp-b.jsp-c.jsp,其中a.jsp中提交的数据要在c.jsp中访问,用最简单的方法 怎么做?注意不能放在session里
考题
在a.jsp中有代码片断如下:在b.jsp中加入下列()代码,可以输出在a.jsp页面上输入的loginName的值。(选择一项) <form action =”b.jsp” method =”POST” name=”form1”> loginName:<input type=”text” name=”loginName”/> <input type=”submit” name=”submit”/> </form>A.<%=(String ) request.getParameter(“loginName”)%>B.<%=(String )request.gerAttribute(“loginName”)%>C.<% String name=request.getParameter(“loginname”); out.println(name); %>D.<% String name-request.getAttribute(“loginname”); out.println(name); %>
考题
下列有关JSP和Servlet的说法,错误的是()A.JSP是Java服务器页面的缩写B.JSP是一种动态页面C.JSP的本质是ServletD.JSP是Servlet的升级版,所以Servlet应由JSP代替
考题
8、在a.jsp中有代码片断如下:在b.jsp中加入下列()代码,可以输出在a.jsp页面上输入的loginName的值。(选择一项) <form action =”b.jsp” method =”POST” name=”form1”> loginName:<input type=”text” name=”loginName”/> <input type=”submit” name=”submit”/> </form>A.<%=(String ) request.getParameter(“loginName”)%>B.<%=(String )request.gerAttribute(“loginName”)%>C.<% String name=request.getParameter(“loginname”); out.println(name); %>D.<% String name-request.getAttribute(“loginname”); out.println(name); %>
考题
若A.jsp中某表单的action属性值为B.jsp,则在B.jsp中可以使用()方法获取该表单提交的表单元素的值。A.request.getParameter(String)B.request.getAttribute(String)C.session.getAttribute(String)D.application.getAttribute(String)
考题
在a.jsp中包含页面中b.jsp的正确语句是()A.<%@ include=”b.jsp”%>B.<jsp:include file=”b.jsp”/>C.<%@ include page=”b.jsp”%>D.<%@ include file=”b.jsp”%>
考题
JSP的脚本元素有哪些?A.JSP表达式B.JSP小脚本C.include指令D.JSP声明
热门标签
最新试卷