Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 39 pages
Exam (elaborations)

PRJ321 Exam Questions AND Correct Answers

Document preview thumbnail
Preview 4 out of 39 pages

PRJ321 Exam Questions AND Correct Answers

Content preview

PRJ321 Exam Questions AND Correct Answers
a - ✔✔A session is begun when servlet code invokes
__________
Choose one answer.
a. HttpServletRequest.getSession()
b. HttpServletResponse.getSession()
c. HttpSession.getSession() method
d. All of the others.


a - ✔✔In request dispatcher, both ______ and _______
methods are used for servlet communication
Choose one answer.
a. include/ forward
b. forward/ sendRedirect
c. forward/ response
d. include/ sendRedirect


a - ✔✔In the web deployment descriptor, the url-pattern tag
of servlet-mapping tag is used for _________


Choose one answer.

,a. accessing or calling the servlet instance
b. informing server about the location of servlet in web
application directory
c. applying the filter on the servlet instance
d. applying the security on the servlet instance


a - ✔✔Name of the class that includes the getSession method
that is used to get the HttpSession object.
Choose one answer.
a. HttpServletRequest
b. SessionContext
c. SessionConfig
d. HttpServletResponse


a - ✔✔The _____ directory contains the archive files requires
for Web Application such as database drivers


Choose one answer.
a. lib
b. tlds
c. classes

,d. tags


a - ✔✔The ________ method called by the servlet container to
allow the servlet to response to a request


Choose one answer.
a. service()
b. getServletContext()
c. init()
d. getInitParameter()


a - ✔✔The ________ method returns a reference to the
ServletContext Object
Choose one answer.
a. getServletContext()
b. getInitParameter()
c. init()
d. service()


a - ✔✔The ________ method returns a string containing the
value of the named initialisation parameter

, Choose one answer.
a. getInitParameter()
b. getServletConfig()
c. init()
d. jspInit


a - ✔✔The ________ method returns the actual length of the
request sent by the client


Choose one answer.
a. getContentLength()
b. getServerName()
c. getParameter()
d. getAttribute()


a - ✔✔When a specific request is processed, some servlets
must be called and they need to access some common data.
These common data should be put to dynamic variables in the
..... scope( select the most correct option).
Choose one answer.

Document information

Uploaded on
November 5, 2025
Number of pages
39
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ExamsCentre
3.7
(3)
Sold
13
Followers
0
Items
1709
Last sold
2 months ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions