如果有两个jsp文件:main.jsp和sub.jsp,这两个文件位于同一个目录中,使用[jsp:include]动作元素,实现在main.jsp文件中包含sub.jsp文件的代码是:[jsp:( ) ( )="sub.jsp" /] (切换到英文输入状态下!!!)
如果有两个jsp文件:main.jsp和sub.jsp,这两个文件位于同一个目录中,使用[jsp:include]动作元素,实现在main.jsp文件中包含sub.jsp文件的代码是:[jsp:( ) ( )="sub.jsp" /] (切换到英文输入状态下!!!)
在Servlet中使用语句“response.sendRedirect("test/main.jsp");”实现页面重定向时,如果当前Servlet位于为本机项目的test的子目录test中,则实际重定向的页面URL为( ) A: http://localhost:8080/main.jsp B: http://localhost:8080/test/main.jsp C: http://localhost:8080/test/test/main.jsp D: http://localhost:8080/test/test/test/main.jsp
在Servlet中使用语句“response.sendRedirect("test/main.jsp");”实现页面重定向时,如果当前Servlet位于为本机项目的test的子目录test中,则实际重定向的页面URL为( ) A: http://localhost:8080/main.jsp B: http://localhost:8080/test/main.jsp C: http://localhost:8080/test/test/main.jsp D: http://localhost:8080/test/test/test/main.jsp
编写 JavaBean可以先不必加入到 JSP 程序中调用,而直接用 main 方法来进行调试,调试好后就可以在 JSP中使用了。( )
编写 JavaBean可以先不必加入到 JSP 程序中调用,而直接用 main 方法来进行调试,调试好后就可以在 JSP中使用了。( )
编写 JavaBean可以先不必加入到 JSP 程序中调用,而直接用 main 方法来调试使用。
编写 JavaBean可以先不必加入到 JSP 程序中调用,而直接用 main 方法来调试使用。
Your web application views all have the same header, which includes the <title> tag in the <head> 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.<title>${param.pageTitle}<title> 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:insert> B: <jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include> C: <jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include> D: <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert> E: <jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>
Your web application views all have the same header, which includes the <title> tag in the <head> 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.<title>${param.pageTitle}<title> 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:insert> B: <jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include> C: <jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include> D: <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert> E: <jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>
用于向其他文件传递参数的动作标签是()。 A: <;jsp:include>;<;/jsp:include>; B: <;jsp:plugin>;<;/jsp:plugin>; C: <;jsp:param>;<;/jsp:param>; D: <;jsp:useBean>;<;/jsp:useBean>;
用于向其他文件传递参数的动作标签是()。 A: <;jsp:include>;<;/jsp:include>; B: <;jsp:plugin>;<;/jsp:plugin>; C: <;jsp:param>;<;/jsp:param>; D: <;jsp:useBean>;<;/jsp:useBean>;
在JSP中,哪个JSP动作可用于将请求转发给其他JSP页面? A: jsp:useBean B: jsp:forward C: jsp:include D: jsp:setProperty
在JSP中,哪个JSP动作可用于将请求转发给其他JSP页面? A: jsp:useBean B: jsp:forward C: jsp:include D: jsp:setProperty
下列( )不属于JSP动作指令标记。 A: <;jsp:param>; B: <;jsp:plugin>; C: <;jsp:useBean>; D: <;jsp:javaBean>;
下列( )不属于JSP动作指令标记。 A: <;jsp:param>; B: <;jsp:plugin>; C: <;jsp:useBean>; D: <;jsp:javaBean>;
以下哪个选项不属于Jsp动作()? A: jsp:include B: jsp:useBean C: jsp:forward D: jsp:import
以下哪个选项不属于Jsp动作()? A: jsp:include B: jsp:useBean C: jsp:forward D: jsp:import
JSP页面不包括以下哪些元素?() A: JSP指令 B: JSP Action C: JSP脚本 D: JSP控件
JSP页面不包括以下哪些元素?() A: JSP指令 B: JSP Action C: JSP脚本 D: JSP控件