1) which method of the RequestDispatcher cannot be called
once the output is sent to the client?
a. forward
b. include
c. both a&b

2) which interface should an object implement to get
notified of changes to the list of active sessions in a web
application?
a. HttpSessionListener
b. HttpSessionActivationListener
c. HttpSessionAttributeLIstener

3) A user can select multiple locations from a list box on
an HTML form, which of the following methods can be used to
retrieve all the selected location?
a. getParameter()
b. getParameterValues()
c. getParamValues()

4) which of the following methods should be used to send
character text to the client?
a. ServletResponse.getWriter()
b. ServletResponse.getOutputStream()
c. ServletResponse.getOut()

5) which implicit object is always available in a JSP page?
a. exception
b. session
c. out

6) which inclusion mechanism doesn't include the source of
the page, rather the output of the page.
a. include directive
b. jsp:include action
c. Bothe a& b

7) which attribute of the page controls whether a page
participates in session or not?
a. session-allowed
b. session
c. isSession

Answer Posted / dhanu

1.(b)include,
2.(c)HttpSessionAttributeLIstener
3.(a)getParameter()
4.(a)ServletResponse.getWriter()
5.(a)exception
6.(c)Bothe a& b
7.(b)session

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe responsibilities of Activator?

1662


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

1722


What restrictions are placed on the location of a package statement within a source code file?

606


What is ripple effect?

627


What are the benefits of detached objects?

577






What is abstract schema?

546


Are enterprise beans allowed to use thread.sleep()?

639


What is the diffrence between a local-tx-datasource and a xa-datasource?

568


What do you mean by Socket Programming?

540


What is the difference between the string and stringbuffer classes?

531


what is handle?

1840


Difference between swing and awt?

593


What method is invoked to cause an object to begin executing as a separate thread?

563


Can I import same package/class twice? Will the jvm load the package twice at runtime?

637


How is a java object message delivered to a non-java client?

569