Which JSTL code snippet can be used to perform URL rewriting?()A、<a href=’<c:url url="foo.jsp"/>’ />B、<a href=’<c:link url="foo.jsp"/>’ />C、<a href=’<c:url value="foo.jsp"/>’ />D、<a href=’<c:link value="foo.jsp"/>’ />

题目

Which JSTL code snippet can be used to perform URL rewriting?()

  • A、<a href=’<c:url url="foo.jsp"/>’ />
  • B、<a href=’<c:link url="foo.jsp"/>’ />
  • C、<a href=’<c:url value="foo.jsp"/>’ />
  • D、<a href=’<c:link value="foo.jsp"/>’ />

相似考题
更多“Which JSTL code̳”相关问题
  • 第1题:

    31. // some code here  32. try {  33. // some code here  34. } catch (SomeException se) {  35. // some code here  36. } finally {  37. // some code here  38. }  Under which three circumstances will the code on line 37 be executed?()

    • A、 The instance gets garbage collected.
    • B、 The code on line 33 throws an exception.
    • C、 The code on line 35 throws an exception.
    • D、 The code on line 31 throws an exception.
    • E、 The code on line 33 executes successfully.

    正确答案:B,C,E

  • 第2题:

    要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()

    • A、〈%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %〉
    • B、〈%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %〉
    • C、〈%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %〉
    • D、〈%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %〉

    正确答案:A

  • 第3题:

    Which the two JSTL URL-related tags perform URL rewriting?()

    • A、 url
    • B、 link
    • C、 param
    • D、 import
    • E、 redirect

    正确答案:A,E

  • 第4题:

    Which three will compile and run without exception?()

    • A、private synchronized Object o;
    • B、void go() {synchronized() { /* code here */ }
    • C、public synchronized void go() { /* code here */ }
    • D、private synchronized(this) void go() { /* code here */ }
    • E、void go() {synchronized(Object.class) { /* code here */ }
    • F、void go() {Object o = new Object();synchronized(o) { /* code here */ }

    正确答案:C,E,F

  • 第5题:

    单选题
    In your Supportcenter.cn database server the parameter PLSQL_CODE_TYPE has been set to NATIVE. Which object would be achieved by the setting?()
    A

    The source PL/SQL code will be stored in native machine code.

    B

    The source PL/SQL code will be stored in interpreted byte code.

    C

    The compiled PL/SQL code will be stored in native machine code.

    D

    The compiled PL/SQL code will be stored in interpreted byte code.


    正确答案: D
    解析: 暂无解析

  • 第6题:

    多选题
    class One {  void foo() {}  }  class Two extends One {   //insert method here  }  Which three methods, inserted individually at line 14, will correctly complete class Two?()
    A

    int foo() { /* more code here */ }

    B

    void foo() { /* more code here */ }

    C

    public void foo() { /* more code here */ }

    D

    private void foo() { /* more code here */ }

    E

    protected void foo() { /* more code here */ }


    正确答案: B,C,E
    解析: 暂无解析

  • 第7题:

    多选题
    Given: Which three methods, inserted individually at line 14, will correctly complete class Two?()
    A

    int foo() { /* more code here */ }

    B

    void foo() { /* more code here */ }

    C

    public void foo() { /* more code here */ }

    D

    private void foo() { /* more code here */ }

    E

    protected void foo() { /* more code here */ }


    正确答案: D,B
    解析: 暂无解析

  • 第8题:

    多选题
    Which the two are true about the JSTL core iteration custom tags?()
    A

    It may iterate over arrays, collections, maps and strings.

    B

    The body of the tag may contain EL code, but not scripting code.

    C

    When looping over collections, a loop status object may be used in the tag body.

    D

    It may iterate over a map, but only the key of the mapping may be used in the tag body.

    E

    When looping over integers (for example begin1=’1’ end=’10’), a loop status object may not be used in the tag body.


    正确答案: A,C
    解析: 暂无解析

  • 第9题:

    多选题
    Which two JSTL URL-related tags perform URL rewriting?()
    A

    Url

    B

    Link

    C

    Param

    D

    Import

    E

    Redirect


    正确答案: C,D
    解析: 暂无解析

  • 第10题:

    单选题
    Which JSTL code snippet can be used to perform URL rewriting?()
    A

    <a href=’<c:url url=foo.jsp/>’ />

    B

    <a href=’<c:link url=foo.jsp/>’ />

    C

    <a href=’<c:url value=foo.jsp/>’ />

    D

    <a href=’<c:link value=foo.jsp/>’ />


    正确答案: B
    解析: 暂无解析

  • 第11题:

    单选题
    Which the JSTL code snippet can be used to import content from another web resource?()
    A

     <c:import url=*foo.jsp”/> 

    B

     <c:import page=*foo.jsp”/> 

    C

     <c:include url=*foo.jsp”/> 

    D

     <c:include page=*foo.jsp”/> 

    E

     Importing cannot be done in JSTL. A standard action must be used instead.


    正确答案: C
    解析: 暂无解析

  • 第12题:

    多选题
    Which two code fragments are most likely to cause a StackOverflowError?()
    A

    A

    B

    B

    C

    C

    D

    D

    E

    E

    F

    F


    正确答案: A,D
    解析: 暂无解析

  • 第13题:

    If a vessel subject to PSC inspection, PSC Officer shall give the inspection to the Captain, the given timeframe for rectification of each deficiency is commonly given in a coded form which called “action code”, which code listed below is used for indication of detention of the vessel?()

    • A、10
    • B、30
    • C、17
    • D、16

    正确答案:B

  • 第14题:

    Which the JSTL code snippet can be used to import content from another web resource?()

    • A、 <c:import url=*foo.jsp”/> 
    • B、 <c:import page=*foo.jsp”/> 
    • C、 <c:include url=*foo.jsp”/> 
    • D、 <c:include page=*foo.jsp”/> 
    • E、 Importing cannot be done in JSTL. A standard action must be used instead.

    正确答案:A

  • 第15题:

    In your Certkiller .com database server the parameter PLSQL_CODE_TYPE has been set to NATIVE. Which object would be achieved by the setting?()

    • A、The source PL/SQL code will be stored in native machine code.
    • B、The source PL/SQL code will be stored in interpreted byte code.
    • C、The compiled PL/SQL code will be stored in native machine code.
    • D、The compiled PL/SQL code will be stored in interpreted byte code.

    正确答案:C

  • 第16题:

    单选题
    要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()
    A

    〈%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core %〉

    B

    〈%@ taglib prefix=x uri=http://java.sun.com/jsp/jstl/xml %〉

    C

    〈%@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt %〉

    D

    〈%@ taglib prefix=sql uri=http://java.sun.com/jsp/jstl/sql %〉


    正确答案: A
    解析: 暂无解析

  • 第17题:

    单选题
    In your Certkiller .com database server the parameter PLSQL_CODE_TYPE has been set to NATIVE. Which object would be achieved by the setting?()
    A

    The source PL/SQL code will be stored in native machine code.

    B

    The source PL/SQL code will be stored in interpreted byte code.

    C

    The compiled PL/SQL code will be stored in native machine code.

    D

    The compiled PL/SQL code will be stored in interpreted byte code.


    正确答案: C
    解析: 暂无解析

  • 第18题:

    多选题
    31. // some code here  32. try {  33. // some code here  34. } catch (SomeException se) {  35. // some code here  36. } finally {  37. // some code here  38. }  Under which three circumstances will the code on line 37 be executed?()
    A

    The instance gets garbage collected.

    B

    The code on line 33 throws an exception.

    C

    The code on line 35 throws an exception.

    D

    The code on line 31 throws an exception.

    E

    The code on line 33 executes successfully.


    正确答案: D,C
    解析: 暂无解析

  • 第19题:

    单选题
    Which JSTL code snippet can be used to import content from another web resource?()
    A

    <c:import url=foo.jsp/>

    B

    <c:import page=foo.jsp/>

    C

    <c:include url=foo.jsp/>

    D

    <c:include page=foo.jsp/>


    正确答案: C
    解析: 暂无解析

  • 第20题:

    多选题
    You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()
    A

    In the init method.

    B

    In the jspInit method.

    C

    In the constructor of the JSP’s Java code.

    D

    In a JSP declaration, which includes an initializer block.

    E

    In a JSP declaration, which includes a static initializer block.


    正确答案: B,C
    解析: 暂无解析

  • 第21题:

    单选题
    Given this method in a class:  public String toString() {  StringBuffer buffer = new StringBuffer();  buffer.append(‟‟);  return buffer.toString();  }  Which is true?()
    A

     This code is NOT thread-safe.

    B

     The programmer can replace StringBuffer with StringBuilder with no other changes.

    C

     This code will perform well and converting the code to use StringBuilder will not enhance the performance.

    D

     This code will perform poorly. For better performance, the code should be rewritten: return “<“+ this.name + “>”;


    正确答案: B
    解析: 暂无解析

  • 第22题:

    多选题
    Which three will compile and run without exception?()
    A

    private synchronized Object o;

    B

    void go(){   synchronized(){/* code here */}

    C

    public synchronized void go(){/* code here */}

    D

    private synchronized(this) void go(){/* code here */}

    E

    void go(){   synchronized(Object.class){/* code here */}

    F

    void go(){   Object o = new Object();   synchronized(o){/* code here */}


    正确答案: A,F
    解析: 暂无解析

  • 第23题:

    多选题
    You have been contracted to create a web site for a free dating service. One feature is the ability for oneclient to send a message to another client, which is displayed in the latter client’s private page. Your contract explicitly states that security is a high priority. Therefore, you need to prevent cross-site hacking inwhich one user inserts JavaScript code that is then rendered and invoked when another user views thatcontent. Which two JSTL code snippets will prevent cross site hacking in the scenario above? ()
    A

    <c:out>${message}</c:out>

    B

    <c:out value=’${message}’ />

    C

    <c:out value=’${message}’ escapeXml=’true’ />

    D

    <c:out eliminateXml=’true’>${message}</c:out>

    E

    <c:out value=’${message}’ eliminateXml=’true’ />


    正确答案: C,D
    解析: 暂无解析