• 2022-06-07
    在Web应用程序中,编写了公共的处理页面名为manage.jsp,该页面包含在Web根目录下名为util的文件夹中,那么在Web根目录下的其他页面上引用该页面的代码正确的是( )。
    A: <% include file="util/manage.jsp"%>
    B: <%@ include file="util/manage.jsp"%>
    C: <%! include file="util/manage.jsp"%>
    D: <include file="util/manage.jsp">
  • B

    内容

    • 0

      下面哪个标签()是JSP静态包含的形式? A: &lt;jsp:include&gt; B: &lt;%@include %&gt; C: D: include E: &lt;@include&gt;

    • 1

      在JSP文件中加载动态页面可以用指令( )。 A: <;%@ include file="filename" %>; B: <;jsp:include/>; C: page指令 D: <;jsp:forward/>;指令

    • 2

      下列()注释在JSP页面中是正确的。 A: &lt;%--注释--%&gt; B: &lt;!--注释--&gt; C: &lt;%!--注释--%&gt; D: &lt;--注释--&gt;

    • 3

      以下通过JSP的include指令来引入这些抽取出的JSP页面方式正确的是( ) A: < %@include file=&quot;head.jsp&quot;% > B: <%@include file=&quot;head.jsp&quot;%> C: <% @include file=&quot;head.jsp&quot;%> D: <%@ include file=&quot;head.jsp&quot;%>

    • 4

      下列选项不能实现页面跳转的是( ) A: &lt;jsp:forward page="page1.jsp" /&gt; B: &lt;jsp:forward page="http://www.baidu.com" /&gt; C: &lt;% response.sendRedirect("page1.jsp");%&gt; D: &lt;% response.sendRedirect("http://www.baidu.com");%&gt;