参考答案和解析
正确答案:A
更多“JSP内置对象request和getParameterValues()方法的返回值是()。A、String[ ]B、Object[ ]C、StringD、Object”相关问题
  • 第1题:

    下面JSP内置对象的作用范围最大的是()

    • A、page
    • B、Application
    • C、Session
    • D、Request

    正确答案:B

  • 第2题:

    Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()

    • A、Store the data in a public instance variable in the servlet.
    • B、Add an attribute to the request object before using the request dispatcher.
    • C、Add an attribute to the context object before using the request dispatcher.
    • D、This CANNOT be done as the tag handler has no means to extract this data.

    正确答案:B

  • 第3题:

    在j2ee中,以下是firevetoablechange方法的正确的原型的是() 

    • A、public void fireVetoableChange(Object  oldValue,Object newValue)
    • B、 public void fireVetoableChange(String  propertyName,Object newValue)
    • C、 public void fireVetoableChange(String  propertyName, Object  oldValue ,Object newValue)throws PropertyVetoException
    • D、 public void fireVetoableChange(String  propertyName, Object  oldValue ,Object newValue)

    正确答案:C

  • 第4题:

    在J2EE中,request对象的()方法可以获取页面请求中一个表单组件对应多个值时的用户的请求数据。

    • A、String[] getParameterValues(Stringname)
    • B、String[] getParameter(Stringname)
    • C、String getParameter(Stringname)
    • D、String getParameterValuses(Stringname)

    正确答案:A

  • 第5题:

    在JAVA EE中,request对象的()方法可以获取页面请求中一个表单组件对应多个值时的用户的请求数据。

    • A、String getParameter(String name)
    • B、String[] getParameter(String name)
    • C、String getParameterValuses(String name)
    • D、String[] getParameterValues(String name)

    正确答案:D

  • 第6题:

    Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()

    • A、Add attributes to the session object.
    • B、Add attributes on the request object.
    • C、Add parameters to the request object.
    • D、Use the pageContext object to add request attributes.
    • E、Add parameters to the JSP’s URL when generating the request dispatcher.

    正确答案:B,E

  • 第7题:

    多选题
    在Java中,下列方法()是一个String对象所具有的。
    A

    equals(Object)

    B

    trim()

    C

    round()

    D

    toString()


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

  • 第8题:

    单选题
    Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()
    A

     Error

    B

     Exception

    C

     Throwable

    D

     Request error

    E

     Request exception


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

  • 第9题:

    问答题
    说明JSP内置对象request的主要作用。

    正确答案: request代表了客户端的请求信息,主要是用来获得客户端的参数和流。request对象获取客户端得参数常用的是通过2个方法String getParameter(String name)和String[]getParameterValues(String name)。
    解析: 暂无解析

  • 第10题:

    单选题
    在J2EE中,以下是firePropertyChange的原型,正确的是()。
    A

    public void firePropertyChange(PropertyChangeListener l,String oldValue, String newValue)

    B

    public void firePropertyChange(String propertyName, Object oldValue, Object newValue)

    C

    public void firePropertyChange(PropertyChangeSupport changes)

    D

    public void firePropertyChange(Object oldValue, Object newValue)


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

  • 第11题:

    单选题
    在j2ee中,以下是firevetoablechange方法的正确的原型的是()
    A

    public void fireVetoableChange(Object  oldValue,Object newValue)

    B

     public void fireVetoableChange(String  propertyName,Object newValue)

    C

     public void fireVetoableChange(String  propertyName, Object  oldValue ,Object newValue)throws PropertyVetoException

    D

     public void fireVetoableChange(String  propertyName, Object  oldValue ,Object newValue)


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

  • 第12题:

    单选题
    在JAVA EE中,request对象的()方法可以获取页面请求中一个表单组件对应多个值时的用户的请求数据。
    A

    String getParameter(String name)

    B

    String[] getParameter(String name)

    C

    String getParameterValuses(String name)

    D

    String[] getParameterValues(String name)


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

  • 第13题:

    Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()

    • A、 Error
    • B、 Exception
    • C、 Throwable
    • D、 Request error
    • E、 Request exception

    正确答案:B

  • 第14题:

    下面哪些代码中声明的变量可以存放10个String对象()

    • A、String[]a;
    • B、Object[]a;
    • C、String[50]a;
    • D、chara[][];

    正确答案:A,B

  • 第15题:

    下列属于引用类型有()。

    • A、Function
    • B、Array
    • C、String
    • D、Object

    正确答案:A,B,D

  • 第16题:

    JSP页面中request.getParamter(String)得到的数据,其类型是()。

    • A、Double
    • B、int
    • C、String
    • D、Integer

    正确答案:C

  • 第17题:

    在J2EE中,以下是firePropertyChange的原型,正确的是()。 

    • A、public void firePropertyChange(PropertyChangeListener l,String oldValue, String newValue)
    • B、public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
    • C、public void firePropertyChange(PropertyChangeSupport changes)
    • D、public void firePropertyChange(Object oldValue, Object newValue)

    正确答案:B

  • 第18题:

    Which HttpSession method stores an object in a session?()

    • A、 put(String name. Object value)
    • B、 set(String name. Object value)
    • C、 setAttribute(String name. Object value)
    • D、 putAttribute(String name. Object value)
    • E、 addAttribute(String name. Object value)

    正确答案:C

  • 第19题:

    单选题
    Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()
    A

    Store the data in a public instance variable in the servlet.

    B

    Add an attribute to the request object before using the request dispatcher.

    C

    Add an attribute to the context object before using the request dispatcher.

    D

    This CANNOT be done as the tag handler has no means to extract this data.


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

  • 第20题:

    单选题
    Which HttpSession method stores an object in a session?()
    A

     put(String name. Object value)

    B

     set(String name. Object value)

    C

     setAttribute(String name. Object value)

    D

     putAttribute(String name. Object value)

    E

     addAttribute(String name. Object value)


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

  • 第21题:

    多选题
    Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated in the servlet to the JSP for view generation.This information must NOT be accessible to any other servlet,JSP or session in the webapp. Which two techniques can you use to accomplish this goal?()
    A

    Add attributes to the session object.

    B

    Add attributes on the request object.

    C

    Add parameters to the request object.

    D

    Use the pageContext object to add request attributes.

    E

    Add parameters to the JSP’s URL when generating the request dispatcher.


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

  • 第22题:

    单选题
    关于mysql_fetch_object说法中,正确的是:()。
    A

    mysql_fetch_object和mysql_fetch_array一样,没什么区别

    B

    mysql_fetch_object返回值是个对象,所以在速度上比mysql_fetch_array要慢

    C

    mysql_fetch_object返回值是个数组,所以在速度上和mysql_fetch_array及mysql_fetch_row差不多

    D

    mysql_fetch_object返回值是个对象,在速度上和mysql_fetch_array及mysql_fetch_row差不多


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

  • 第23题:

    单选题
    JSP内置对象request和getParameterValues()方法的返回值是()。
    A

    String[ ]

    B

    Object[ ]

    C

    String

    D

    Object


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