当JSP中有撰写中文时,而执行结果出现乱码,必须检查page指示元素的哪些属性设定是否正确()。A、contentTypeB、languageC、extendsD、pageEncoding
当JSP中有撰写中文时,而执行结果出现乱码,必须检查page指示元素的哪些属性设定是否正确()。
- A、contentType
- B、language
- C、extends
- D、pageEncoding
相关考题:
在J2EE中,关于JSP文件中的page指令在JSP文件中出现的位置和次数,正确的是()。 A.page指令可以在JSP中的任何地方,以任何顺序出现B.一个JSP文件可以有任意多个page指令C.一个JSP文件只能有一个page指令D.在整个JSP文件中,虽然可以有多个page指令,但是任何属性/值对只能出现一次
Page指令用于定义JSP文件中的全局属性,下列关于该指令用法描述不正确的是() A.%page%作用于整个JSP页面B.可以在一个页面中使用多个%page%指令C.为增强程序的可读性,建议讲%page%指令放在JSP文件的开头,担不是必须的D.%page%指令中属性只能出现一次
下面关于page指令说法中错误的是()。 A、page指令用来定义JSP页面中的全局属性B、一个JSP页面只能包含一个page指令C、除了import外,其他page指令定义的属性/值只能出现一次D、language属性用来指示所使用的语言
某JSP中有如下代码:pageContext.setAttribute( “a” , ” page ” );request.setAttribute( “a” , ” request ” );session.setAttribute( “a” , ” session ” );application.setAttribute( “a” , ” application ” );% >有:${a}则显示结果为:A.pageB.requestC.sessionD.application
Page指令用于定义JSP文件中的全局属性,下列关于该指令用法的描述不正确的是:()A、%@ page %%@ page %作用于整个JSP页面B、可以在一个页面中使用多个%@ page %%@ page %指令C、为增强程序的可读性,建议将%@ page %%@ page %指令放在JSP文件的开头,但不是必须的D、%@ page %%@ page %指令中的属性只能出现一次
在JSP页面中,正确引入JavaBean的是() A、%jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” % B、jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” C、jsp: useBean id =”myBean” scope =”page” class=”pkg.MyBean” / D、jsp: useBean name=”myBean” scope =”page” class=”pkg.MyBean” /
当在JSP文件中要使用到Vector对象时,应在JSP文件中加入以下哪个语句?()A、〈jsp:include file=”java.util.*” /〉B、〈jsp:include page=”java.util.*” /〉C、〈%@ page import=”java.util.*” %〉D、〈%@ page include=”java.util.*” %〉
A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()A、 idB、 typeC、 nameD、 classE、 scopeF、 create
Which JSP standard action can be used to import content from a resource called foo.jsp?()A、jsp:import file=’foo.jsp’ /B、jsp:import page=’foo.jsp’ /C、jsp:include page=’foo.jsp’ /D、jsp:include file=’foo.jsp’ /
Which three occur during JSP page translation?()A、 The jspInit method is called.B、 The JSP page implementation class is created.C、 The JSP page implementation class is compiled.D、 The JSP page is validated for syntatic correctness.E、 The associated tag files are validated for syntatic correctness.
在J2EE中,关于JSP文件中的page指令在JSP文件中出现的位置和次数,正确的是()。 A、page指令可以在JSP中的任何地方,以任何顺序出现B、一个JSP文件可以有任意多个page指令C、一个JSP文件只能有一个page指令D、在整个JSP文件中,虽然可以有多个page指令,但是任何属性/值对只能出现一次
下面关于page指令说法中错误的是()A、page指令用来定义JSP页面中的全局属性B、一个JSP页面只能包含一个page指令C、除了import外,其他page指令定义的属性/值只能出现一次D、language属性用来指示所使用的语言E、“java”是当前唯一可用的JSP语言
Page指令用于定义JSP文件中的全局属性,下列关于该指令用法的描述不正确的是()。A、可以在一个页面中使用多个%@page%指令B、%@page%作用于整个JSP页面C、%@page%指令中的属性只能出现一次D、为增强程序的可读性,建议将%@page%指令放在JSP文件的开头,但不是必须的
Page指令用于定义JSP页面的全局属性,下列关于该指令的描述不正确的是()?A、〈%@ page%〉作用于整个JSP页面B、为增强程序的可读性,建议将Page指令放在JSP文件的开头,但这不是必须的C、〈%@ page%〉指令中的isErrorPage属性若被设置为true,则表示当前页面为出现异常时所显示的页面,该页面能使用exception对象D、〈%@ page%〉指令中的errorPage属性可以出现多次并设置不同的值
某JSP页面包含以下脚本,〈%! int count=100;%〉〈% int count=0;%〉The page is referenced by〈%=++count%〉times则第一次访问该网页时,()显示的结果是对的?A、The page is referenced by 0 timesB、The page is referenced by 1 timesC、The page is referenced by 100 timesD、The page is referenced by 101 times
You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()A、jsp:insert page=’${bodyURL}’ /B、jsp:insert file=’${bodyURL}’ /C、jsp:include page=’${bodyURL}’ /D、jsp:include file=’${bodyURL}’ /E、jsp:insert page=’%= bodyURL %’ /
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
多选题在J2EE中,关于JSP文件中的page指令在JSP文件中出现的位置和次数,正确的是()。Apage指令可以在JSP中的任何地方,以任何顺序出现B一个JSP文件可以有任意多个page指令C一个JSP文件只能有一个page指令D在整个JSP文件中,虽然可以有多个page指令,但是任何属性/值对只能出现一次
多选题A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page?()AidBtypeCnameDclassEscopeFcreate
多选题关于JSP的描述,哪个是正确的()。A要在JSP中撰写Java程序代码,必须重新定义_jspService()B重新定义jspInit()来作JSP初次载入容器的初始化动作C重新定义jspDestroy()来作JSP从容器销毁时的结尾动作D要在JSP中撰写Java程序代码,必须重新定义service()
单选题Page指令用于定义JSP文件中的全局属性,下列关于该指令用法的描述不正确的是:()A%@ page %%@ page %作用于整个JSP页面B可以在一个页面中使用多个%@ page %%@ page %指令C为增强程序的可读性,建议将%@ page %%@ page %指令放在JSP文件的开头,但不是必须的D%@ page %%@ page %指令中的属性只能出现一次
单选题下面关于page指令说法中错误的是()Apage指令用来定义JSP页面中的全局属性B一个JSP页面只能包含一个page指令C除了import外,其他page指令定义的属性/值只能出现一次Dlanguage属性用来指示所使用的语言E“java”是当前唯一可用的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?()Ajsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeBjsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importCjsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeDjsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import
单选题当在JSP文件中要使用到Vector对象时,应在JSP文件中加入以下哪个语句?()A〈jsp:include file=”java.util.*” /〉B〈jsp:include page=”java.util.*” /〉C〈%@ page import=”java.util.*” %〉D〈%@ page include=”java.util.*” %〉
多选题Which three occur during JSP page translation?()AThe jspInit method is called.BThe JSP page implementation class is created.CThe JSP page implementation class is compiled.DThe JSP page is validated for syntatic correctness.EThe associated tag files are validated for syntatic correctness.
单选题Your web application views all have the same header, which includes the tag in the elementof the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put itinto a single JSP called /WEB-INF/jsp/header.jsp. However, the title of each page is unique, so you havedecided to use a variable called pageTitle to parameterize this in the header JSP, like this: 10.${param.pageTitle} Which JSP code snippet should you use in your main view JSPs to insert the header and pass thepageTitle variable?()Ajsp:insert page=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:insertBjsp:include page=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeCjsp:include file=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeDjsp:insert page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:insertEjsp:include page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:include
多选题A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBeanattributes must be used to access this attribute in the JSP page?()AIdBTypeCNameDClassEYscope