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

题目内容 (请给出正确答案)
单选题
假定login.getName() 返回类型为java.lang.String ,给定JSP代码: Welcome 以下那个选项与此语句的功能相同?()
A

 Welocome <% out.print(login.getName());%>         

B

 Welocome <% Writer.print(login.getName());%> 

C

 Welocome <% response.out.print(login.getName());%> 

D

 Welocome <%r esponse.writer.print(login.getName());%> <%r>

 


参考答案

参考解析
解析: 暂无解析
更多 “单选题假定login.getName() 返回类型为java.lang.String ,给定JSP代码: Welcome 以下那个选项与此语句的功能相同?()A  Welocome % out.print(login.getName());%         B  Welocome % Writer.print(login.getName());% C  Welocome % response.out.print(login.getName());% D  Welocome %r esponse.writer.print(login.getName());% %r ” 相关考题
考题 在J2ee中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。 A.welcome-filestart.jsp/welcome-fileB.welcome-file-liststart.jsp/welcome-file-listC.welcome-listwelcome-filestart.jsp/welcome-file/welcome-listD.welcome-file-listwelcome-filestart.jsp/welcome-file/welcome-file-list

考题 给定一个自定义标签程序的代码片断如下:public int doStartTage() throws JspTagException{pageContext.getAttribute(“A”); //第二行return EVAL_BODY_INCLUDE;}假定第二行返回的对象引用不是null,那么这个对象存储在( )范围中A、pageB、sessionC、requestD、application

考题 Giventhatlogin.getName()returnsajava.lang.StringvalueandgiventheJSPcode:WelcomeWhichisequivalent?() A.Welcome%out.print(login.getName());%B.Welcome%writer.print(login.getName());%C.Welcome%response.out.print(login.getName());%D.Welcome%response.writer.print(login.getName());%E.Welcome%response.getOutputStream().write(login.getName());%

考题 考虑下面JSP文件代码片断: 考虑下面JSP文件代码片断:以下()代码片断放置在test2.jsp中不会导致错误A.B.C.D.

考题 给定以下JSP代码片段,有2个客户依次浏览该JSP;且每个客户只浏览一次,第2个客户会看到浏览器显示()。X = A.x=1B.x=2C.x=10D.x=11

考题 假定一个函数原型为"char *func(int n)",则该函数的返回类型为()。AintBint*CcharDchar*

考题 Given that login.getName() returns a java.lang.String value and given the JSP code:  Welcome %= login.getName() %Which is equivalent?()A、% Welcome % out.print(login.getName()); % B、 Welcome % writer.print(login.getName()); % C、 Welcome % response.out.print(login.getName()); %D、 Welcome % response.writer.print(login.getName()); % E、 Welcome % response.getOutputStream().write(login.getName()); %

考题 在一个JSP页面代码中一定没有的部分是()。A、javascript代码B、JSP指令C、JSP动作D、HTML代码

考题 在J2EE 中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开 该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。A、welcome-filestart.jsp/welcome-file B、welcome-file-liststart.jspwelcome-file-list C、welcome-listwelcome-filestart.jsp/welcome-file/welcome-list D、welcome-file-listwelcome-filestart.jsp/welcome-file/welcome-file-list

考题 在J2ee中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。A、welcome-filestart.jsp/welcome-file B、welcome-file-liststart.jsp/welcome-file-list C、welcome-list  welcome-filestart.jsp/welcome-file /welcome-list D、welcome-file-list welcome-filestart.jsp/welcome-file   /welcome-file-list

考题 在j2ee中,mywebapp目录是一个web应用程序根目录,当在浏览器中输入http://localhost:8080/mywebapp/时,会自动打开该目录下的start.jsp文家。为了达到这个要求,需要在web.xml中添加如下代码() A、welcome-filestart.jsp/welcome.-file B、welcome-file-list start.jsp /welcome.-file-list C、welcome-filewelcome-file start.jsp/welcome-file /welcome.-file D、welcome-file-listwelcome-file start.jsp /welcome.-file/welcome-file-list

考题 类中的()方法不需要给定返回值类型。

考题 假定login.getName() 返回类型为java.lang.String ,给定JSP代码: Welcome %= login.getName() %以下那个选项与此语句的功能相同?()A、 Welocome % out.print(login.getName());%         B、 Welocome % Writer.print(login.getName());% C、 Welocome % response.out.print(login.getName());% D、 Welocome %r esponse.writer.print(login.getName());% %r

考题 在Java EE中,以下对RequestDispatcher描述正确的是()。A、JSP中有个隐含的对象dispatcher,它的类型是RequestDispatcherB、ServletConfig有一个方法:getRequestDispatcher可以返回RequestDipatcher对象C、RequestDipatcher有一个方法:forward可以把请求继续传递给别的Servlet或者JSP界面D、JSP中有个隐含的默认对象request,它的类型是RequestDipatcher

考题 JSP页面中一定要包含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

考题 Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()A、Java codeB、Template textC、Scripting codeD、Standard actionE、Expression language

考题 单选题在J2ee中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。A welcome-filestart.jsp/welcome-file B welcome-file-liststart.jsp/welcome-file-list C welcome-list  welcome-filestart.jsp/welcome-file /welcome-list D welcome-file-list welcome-filestart.jsp/welcome-file   /welcome-file-list

考题 单选题假定login.getName() 返回类型为java.lang.String ,给定JSP代码: Welcome 以下那个选项与此语句的功能相同?()A  Welocome % out.print(login.getName());%         B  Welocome % Writer.print(login.getName());% C  Welocome % response.out.print(login.getName());% D  Welocome %r esponse.writer.print(login.getName());% %r

考题 单选题在J2EE 中,myWebApp目录是一个Web应用程序根目录,当在浏览器中输入http://localhost:8080/myWebApp/时,会自动打开 该目录下的start.jsp文件。为了达到这个要求,需要在web.xml中添加如下代码()。A welcome-filestart.jsp/welcome-file B welcome-file-liststart.jspwelcome-file-list C welcome-listwelcome-filestart.jsp/welcome-file/welcome-list D welcome-file-listwelcome-filestart.jsp/welcome-file/welcome-file-list

考题 多选题Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()AJava codeBTemplate textCScripting codeDStandard actionEExpression language

考题 单选题在j2ee中,mywebapp目录是一个web应用程序根目录,当在浏览器中输入http://localhost:8080/mywebapp/时,会自动打开该目录下的start.jsp文家。为了达到这个要求,需要在web.xml中添加如下代码()A welcome-filestart.jsp/welcome.-file B welcome-file-list start.jsp /welcome.-file-list C welcome-filewelcome-file start.jsp/welcome-file /welcome.-file D welcome-file-listwelcome-file start.jsp /welcome.-file/welcome-file-list

考题 单选题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?()A 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

考题 单选题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?()A jsp:insert page=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:insertB jsp:include page=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeC jsp:include file=’/WEB-INF/jsp/header.jsp’. ${pageTitle=’Welcome Page’}. /jsp:includeD jsp:insert page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:insertE jsp:include page=’/WEB-INF/jsp/header.jsp’. jsp:param name=’pageTitle’ value=’Welcome Page’ / . /jsp:include

考题 单选题Given that login.getName() returns a java.lang.String value and given the JSP code:  Welcome Which is equivalent?()A % Welcome % out.print(login.getName()); % B  Welcome % writer.print(login.getName()); % C  Welcome % response.out.print(login.getName()); %D  Welcome % response.writer.print(login.getName()); % E  Welcome % response.getOutputStream().write(login.getName()); %

考题 填空题类中的()方法不需要给定返回值类型。

考题 判断题JSP页面中一定要包含jsp代码。A 对B 错

考题 单选题假定一个函数原型为"char *func(int n)",则该函数的返回类型为()。A intB int*C charD char*