网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

form表单提交的信息中含有“name= svse”,阅读下面的JSP,a.jsp将输出()。 接受该请求的JSP: <% response.sendRedirect("a.jsp"); %> a.jsp: <%=request.getParameter("name") %>

A.null

B.什么都不输出

C.异常信息

D.svse


参考答案和解析
A
更多 “form表单提交的信息中含有“name= svse”,阅读下面的JSP,a.jsp将输出()。 接受该请求的JSP: <% response.sendRedirect("a.jsp"); %> a.jsp: <%=request.getParameter("name") %>A.nullB.什么都不输出C.异常信息D.svse” 相关考题
考题 Struts通过()支持MVC的视图开发 A.JSP标签库和FormBeanB.EJBC.ServletD.Applet

考题 在J2EE中,对于标记,描述正确的是()。 A.jsp:param是jsp:include、jsp:forward标记的子标记B.如果aa.jsp有代码:jsp:forwardpage=next.jspjsp:paramname=namevalue=jb-aptech//jsp:forward,则在next.jsp中可以使用request.getParameter(name);把属性name的值取出来C.如果aa.jsp有代码:jsp:forwardpage=next.jspjsp:paramname=namevalue=jb-aptech//jsp:forward,则在next.jsp中可以使用request.getAttribute(name);把属性name的值取出来D.如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面

考题 在J2EE中,在JSP中想要使用JavaBean:mypackage.mybean,则以下写法正确的是()。 A.jsp:uesrbeanid=mybeanscope=pageclass=mypackage.mybean/B.jsp:uesrbeanclass=mypackage.mybean/C.jsp:uesrbeanid=mybeanclass=mypackage.mybeanD.jsp:uesrveanid=mybeanclass=mypackage.mybean/

考题 在J2EE中,在JSP中想要使用JavaBean:mypackage.mybean,则一下写法正确的是() A.jsp:usebeanid=”mybean”scope=”page”class=”mypackage.mybean”/B.jsp:useBeanclass=”mypackage.mybean.class”/C.jsp:usebeanid=”mybean”class=”mypackage.mybean”/D.jsp:useBeanid=”mybean”class=”mypackage..mybean”

考题 J2EE中,标记的作用是()。 A.jsp:setProperty和jsp:getProperty必须在一个jsp文件中搭配出现B.就如同session.setAttribute()一样,来设置属性/值对C.和jsp:useBean动作一起使用,来设置bean的属性值D.就如同request.setAttribute()一样,来设置属性/值对

考题 在WEB应用程序的目录结构中,WEB-INF文件夹外的文件为() A.JSP文件B.Class文件C..jar文件D.web.xml文件

考题 在J2EE中,对于以下的include指令和include动作,书写正确的是() A.jsp:includepage=http://localhost:/8080/my.jsp/B.%@includefile=http://localhost:/8080/my.jsp/C.jsp:includefile=http://localhost:/8080/my.jsp/D.%@includepage=http://localhost:/8080/my.jsp/

考题 关于JSP下列说法不正确的是() A.JSP的全称是JavaServerPagesB.JSP是由sun公司主导,许多别的公司参与一起来建设的一种动态网页技术C.在HTML文件里加入Java程序片段和JSP标签可以构成JSP网页D.JSP的运行环境是,正确安装JDK即可

考题 如果某一JSP页面的表单中,有几个复选框,name为“habit“,则该JSP提交后,通过下面()语句去获取用户选中复选框的值。 A.request.getAttribute(“habit”);B.request.getParameter(“habit”)C.request.getParameterValues(“habit”)D.request.getHabit();

考题 ●以下正确使用JavaBean的语句是 (62) 。(62)A.jsp:useBean name='’beanTes'’ class='’ClassBean'’/B. jsp:useBean id=’'beanTest” class=”ClassBean”C. jsp:useBean bean='’beanTest'’ class='’ClassBean'’/D. jsp:useBean beanName='’beanTest'’ class='’ClassBean'’/

考题 在客户端浏览器的源代码中可以看到( )A.JSP注释B.HTML注释C.JSP注释和HTML注释D.JA V A注释

考题 下列哪一种不是JSP页面的组成元素.( )A.JSP标签,如指令标签B.普通的HTML标记符C.Java表达式D.C语言程序

考题 Youarebuildingyourownlayoutmechanismbyincludingdynamiccontentforthepage’sheaderandfootersections.Thefooterisalwaysstatic,buttheheadergeneratesthetitletagthatrequiresthepagenametobespecifieddynamicallywhentheheaderisimported.WhichJSPcodesnippetperformstheimportoftheheadercontent?()A.jsp:includepage=’/WEB-INF/jsp/header.jsp’jsp:paramname=’pageName’value=’WelcomePage’//jsp:includeB.jsp:importpage=’/WEB-INF/jsp/header.jsp’jsp:paramname=’pageName’value=’WelcomePage’//jsp:importC.jsp:includepage=’/WEB-INF/jsp/header.jsp’jsp:attributename=’pageName’value=’WelcomePage’/./jsp:includeD.jsp:importpage=’/WEB-INF/jsp/header.jsp’.jsp:attributename=’pageName’value=’WelcomePage’/./jsp:import

考题 Formanageabilitypurposes,youhavebeentoldtoaddacountinstancevariabletoacriticalJSP DocumentsothataJMXMBeancantrackhowfrequentthisJSPisbeinginvoked.WhichJSPcodesnippetmustyouusetodeclarethisinstancevariableintheJSPDocument?()A.jsp:declarationintcount=0;jsp:declarationB.%!intcount=0;%C.jsp:declaration.instanceintcount=0;.jsp:declaration.instanceD.jsp:scriptlet.declarationintcount=0;.jsp:scriptlet.declaration

考题 YouneedtocreateaJavaBeanobjectthatisusedonlywithinthecurrentJSPpage.ItmustNOTbeaccessibletoanyotherpageincludingthosethatthispagemightimport.WhichJSPstandardactioncanaccomplishthisgoal?() A.jsp:useBeanid=’pageBean’type=’com.example.MyBean’/B.jsp:useBeanid=’pageBean’class=’com.example.MyBean’/C.jsp:makeBeanid=’pageBean’type=’com.example.MyBean’/D.jsp:makeBeanid=’pageBean’class=’com.example.MyBean’/

考题 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,要从a.jsp传值到b.jsp有几种方法?分别是什么?

考题 有三个页面,a.jsp,b.jsp和c.jsp,流程是:a.jsp-b.jsp-c.jsp,其中a.jsp中提交的数据要在c.jsp中访问,用最简单的方法 怎么做?注意不能放在session里

考题 下列构建Web网站的组合中,性价比最高的是( )。A.JSP +IIS+OracleB.ASP.NET+IIS+Microsoft SQL ServerC.PHP++Apache+MySQLD.PHP+IIS+Oracle

考题 Struts应用框架是()模式的实现。 A.JSP Model1B.MVCC.DAOD.Facade

考题 关于JSP生命周期的叙述,下列哪些为真?() A.JSP会先解释成Servlet源文件,然后编译成Servlet类文件B.每当用户端运行JSP时,jspInit方法都会运行一次C.每当用户端运行JSP时,_jspService方法都会运行一次D.每当用户端运行JSP时,jspDestroy方法都会运行一次

考题 在J2EE中,对于标记,描述正确的是()。     A、jsp:param是jsp:include、jsp:forward标记的子标记  B、如果aa.jsp有代码:jsp:forward page="next.jsp"jsp:param name="name" value="jb-aptech" //jsp:forward,则在next.jsp中可以使用request.getParameter("name");把属性name的值取出来 C、如果aa.jsp有代码:jsp:forward page="next.jsp"jsp:param name="name" value="jb-aptech" //jsp:forward,则在next.jsp中可以使用request.getAttribute("name");把属性name的值取出来 D、如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面

考题 如果某一JSP页面的表单中,有几个复选框,name为“habit“,则该JSP提交后,通过下面()语句去获取用户选中复选框的值。 A、request.getAttribute(“habit”);B、request.getParameter(“habit”)C、request.getParameterValues(“habit”)D、request.getHabit();

考题 阅读下面代码片段: RequestDispatcher dispatcher=request.getRequestDispatcher("a.jsp"); dispatcher.forward(request,response); 关于该段代码的作用,下列叙述哪项是正确的?()A、页面重定向到a.jsp页面B、将请求转发到a.jsp页面C、从a.jsp定向到当前页面D、从a.jsp转发到当前页面

考题 You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() titleA、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeB、jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD、jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 单选题在WEB应用程序的目录结构中,在WEB-INF文件夹中的lib目录是放()的。A .jsp文件B .class文件C .jar文件D web.xml文件

考题 多选题在J2EE中,对于标记,描述正确的是()。Ajsp:param是jsp:include、jsp:forward标记的子标记B如果aa.jsp有代码:jsp:forward page=next.jspjsp:param name=name value=jb-aptech //jsp:forward,则在next.jsp中可以使用request.getParameter(name);把属性name的值取出来C如果aa.jsp有代码:jsp:forward page=next.jspjsp:param name=name value=jb-aptech //jsp:forward,则在next.jsp中可以使用request.getAttribute(name);把属性name的值取出来D如果jsp:param标记不放在jsp:forward标记内,也就是不作为jsp:forward标记的子标记,则使用浏览器查看时会显示错误页面

考题 单选题在WEB应用程序的目录结构中,在WEB-INF文件夹外的文件为()。A .jsp文件B .class文件C .jar文件D web.xml文件