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
How are commas used in the intialization and iteration parts of a for statement?
What restrictions are placed on the location of a package statement within a source code file?
Can you give me a simple example of using the requiredif validator rule?
What are the pros and cons of detached objects?
Explain how will the struts know which action class to call when you submit a form?
What is the difference between system.out ,system.err and system.in?
What is a clone?
what is handle?
How to determine SGA site?
What modifiers may be used with an inner class that is a member of an outer class?
What are the steps to write p-to-p model application?
Where can I find seam examples and documentation?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
How will you pass parameters in RMI? Why do you serialize?
What is the difference between static and non-static with examples?