多选题关于Servlet Filter,下列说法正确的有()AFilter其实就是一个ServletBFilter可以产生responseCFilter可以在Servlet被调用之前截获requestDFilter可以哟活过来处理统一认证,过滤不雅字句等

题目
多选题
关于Servlet Filter,下列说法正确的有()
A

Filter其实就是一个Servlet

B

Filter可以产生response

C

Filter可以在Servlet被调用之前截获request

D

Filter可以哟活过来处理统一认证,过滤不雅字句等


相似考题
更多“关于Servlet Filter,下列说法正确的有() ”相关问题
  • 第1题:

    Given the web application deployment descriptor elements: 11. 12.ParamAdder 13.com.example.ParamAdder 14.... 24. 25.ParamAdder 26.MyServlet 27. 28. Which element, inserted at line 27,causes the ParamAdder filter to be applied when MyServlet is invokedby another servlet using the RequestDispatcher.include method?()

    • A、<include/>
    • B、<dispatcher>INCLUDE</dispatcher>
    • C、<dispatcher>include</dispatcher>
    • D、<filter-condition>INCLUDE</filter-condition>
    • E、<filter-condition>include</filter-condition>

    正确答案:B

  • 第2题:

    关于Servlet Filter,下列说法正确的有() 

    • A、Filter其实就是一个Servlet
    • B、Filter可以产生response
    • C、Filter可以在Servlet被调用之前截获request
    • D、Filter可以哟活过来处理统一认证,过滤不雅字句等

    正确答案:C,D

  • 第3题:

    Which is the true choice about the web container request processing model()?

    • A、 The init method on a filter is called the first time a servlet mapped to that filter is invoked
    • B、 A filter defined for a servlet must always forward control to the next resource in the filter chain.
    • C、 Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file
    • D、 If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it

    正确答案:C

  • 第4题:

    关于servlet的service方法,说法正确的是()。

    • A、在servlet初始化后,由servlet容器调用
    • B、处理客户请求
    • C、可以访问外部资源
    • D、可获得请求信息

    正确答案:A,B,C,D

  • 第5题:

    关于servlet的init方法,说法正确的是()。

    • A、由servlet容器调用
    • B、servlet容器只调用一次init方法来初始化一个servlet
    • C、在servlet接受到客户请求前,init方法必须成功完成
    • D、init方法不能被覆盖(重写)

    正确答案:A,B,C

  • 第6题:

    Which element is the parent of the  tag in the web application deployment descriptor? ()

    • A、 <web-app> 
    • B、 <filters> 
    • C、 <servlet> 
    • D、 <filter-list> 

    正确答案:A

  • 第7题:

    多选题
    Which three are true about servlet filters?()
    A

    A filter must implement the destroy method.

    B

    A filter must implement the doFilter method.

    C

    A servlet may have multiple filters associated with it.

    D

    A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.

    E

    A filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.


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

  • 第8题:

    单选题
    以下有关自定义servlet、filter错误的是()
    A

    是在uap项目的weB.xml中定义servlet、filter

    B

    在模块中定义servlet、filter时,首先是模块的启动顺序决定了模块中所有servlet、filter的顺序

    C

    如果同一个模块中servlet、filter定义在不同的文件中,文件被加载解析的顺序也会影响模块servlet、filter的顺序

    D

    模块中同一个配置文件中定义的servlet、filter按被定义的前后顺序处理


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

  • 第9题:

    多选题
    关于Servlet Filter,下列说法正确的有()
    A

    Filter其实就是一个Servlet

    B

    Filter可以产生response

    C

    Filter可以在Servlet被调用之前截获request

    D

    Filter可以哟活过来处理统一认证,过滤不雅字句等


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

  • 第10题:

    单选题
    在J2EE中使用Servlet过滤器时,可以在web.xml文件的()元素中包括<init-param>元素。
    A

    <filter>

    B

    <filter-mapping>

    C

    <filter-name>

    D

    <filter-class>


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

  • 第11题:

    多选题
    关于servlet的service方法,说法正确的是()。
    A

    在servlet初始化后,由servlet容器调用

    B

    处理客户请求

    C

    可以访问外部资源

    D

    可获得请求信息


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

  • 第12题:

    单选题
    在JAVA EE中,使用Servlet过滤器时,需要在web.xml通过()元素将过滤器映射到Web资源。
    A

    〈filter〉

    B

    〈filter-mapping〉

    C

    〈servlet〉

    D

    〈servlet-mapping〉


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

  • 第13题:

    Which the three are true about servlet filters?()

    • A、 A filter must implement the destroy method
    • B、 A filter must implement the doFilter method
    • C、 A servlet may have multiple filters associated with it
    • D、 A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain  interface
    • E、 A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward method
    • F、 For each  element in the web application deployment descriptor, multiple instances of a filter may be created by the web container

    正确答案:A,B,C

  • 第14题:

    在J2EE中使用Servlet过滤器时,可以在web.xml文件的()元素中包括<init-param>元素。

    • A、<filter>
    • B、<filter-mapping>
    • C、<filter-name>
    • D、<filter-class>

    正确答案:A

  • 第15题:

    下列关于Servlet技术的特点说法正确的是()

    • A、可移植性好
    • B、功能强大
    • C、安全,简洁,和服务器紧密集成
    • D、高效耐用
    • E、Java语言能实现的功能,Servlet基本都能实现

    正确答案:A,B,C,D,E

  • 第16题:

    在J2EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括元素。

    • A、<filter>
    • B、<filter-class>
    • C、<filter-name>
    • D、<filter-mapping>

    正确答案:A

  • 第17题:

    在JAVA EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括〈init-param〉元素。

    • A、〈filter〉
    • B、〈filter-mapping〉
    • C、〈filter-name〉
    • D、〈filter-class〉

    正确答案:A

  • 第18题:

    Which three are true about servlet filters?()

    • A、A filter must implement the destroy method.
    • B、A filter must implement the doFilter method.
    • C、A servlet may have multiple filters associated with it.
    • D、A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.
    • E、A filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.

    正确答案:A,B,C

  • 第19题:

    单选题
    Which is true about the web container request processing model?()
    A

    The init method on a filter is called the first time a servlet mapped to that filter is invoked.

    B

    A filter defined for a servlet must always forward control to the next resource in the filter chain.

    C

    Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file.

    D

    If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it.


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

  • 第20题:

    多选题
    You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()
    A

    Your filter class must implement an init method and a destroy method.

    B

    Your filter class must also implement javax.servlet.FilterChain.

    C

    When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.

    D

    The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.

    E

    Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.


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

  • 第21题:

    多选题
    Which the three are true about servlet filters?()
    A

    A filter must implement the destroy method

    B

    A filter must implement the doFilter method

    C

    A servlet may have multiple filters associated with it

    D

    A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain  interface

    E

    A filter that is part of a filter chain passes control to the next filter in the chain by invoking the filterChain forward method

    F

    For each  element in the web application deployment descriptor, multiple instances of a filter may be created by the web container


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

  • 第22题:

    单选题
    Which is the true choice about the web container request processing model()?
    A

     The init method on a filter is called the first time a servlet mapped to that filter is invoked

    B

     A filter defined for a servlet must always forward control to the next resource in the filter chain.

    C

     Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file

    D

     If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it


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

  • 第23题:

    多选题
    下列关于Servlet技术的特点说法正确的是()
    A

    可移植性好

    B

    功能强大

    C

    安全,简洁,和服务器紧密集成

    D

    高效耐用

    E

    Java语言能实现的功能,Servlet基本都能实现


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

  • 第24题:

    单选题
    在JAVA EE中,使用Servlet过滤器时,可以在web.xml文件的()元素中包括〈init-param〉元素。
    A

    〈filter〉

    B

    〈filter-mapping〉

    C

    〈filter-name〉

    D

    〈filter-class〉


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