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 3 out of 28 pages
Exam (elaborations)

PRJ321 – 1 || 100% Error-free Answers.

Document preview thumbnail
Preview 3 out of 28 pages

PRJ321 – 1 || 100% Error-free Answers.

Content preview

PRJ321 – 1 || 100% Error-free Answers.
Study the statements:
1) URL rewriting may be used when a browser is disabled cookies.
2) In URL encoding the session id is included as part of the URL
Which is the correct option ?
A. Only statement 1 is true
B. Only statement 2 is true
C. Both 1 and 2 are true
D. Both 1 and 2 are not true correct answers Both 1 and 2 are true

A JSP page will not have access to session implicit variable if.
A. the user has closed all his/her browser windows.
B. the request is the first request from the user.
C. the user's browser does not support URL rewriting.
D. the session attribute of page directive is set to false. correct answers the session attribute of
page directive is set to false.

Which statements are BEST describe type attribute of <jsp:useBean type=_.. /> action?

A. The name used to manipulate the Java object with actions <jsp:setProperty> and
<jsp:getProperty>. A variable of this name is also declared for use in JSP scripting elements.
The name specified here is call..
B. The name of a bean that can be used with method instantiate of class java.beans.Beans to
load a JavaBean into memory.
C. The fully qualified class name of the Java object
D. The type ofthe JavaBean. This can be the same type as the class attribute, a superclass
ofthattype or an interface implemented bythattype. The default value is the same as for
attribute class. ACIassCai
E. The scope in which the Java object is accessible-page. request session or application. The
default scope is page. correct answers The fully qualified class name of the Java object

(Choose 1 answer)

HttpServletRequest.getSession() method returns a_____object.

A. HttpServletSession.

B. HttpResponseSession.

C. HttpRequestSession.

D. HttpSession. correct answers HttpSession.

(Choose 1 answer)

You need to make sure that the response stream of your web application is secure. Which
factor will you look at? (Choose one)

A. data integrity

,B. authentication

C. authorization correct answers data integrity

Class HttpServlet defines the methods _____ and _______ to response to get and post request
from a client.

A. DoGet, DoPost

B. doGet, doPost

C. doGET, doPOST

D. Get, Post correct answers doGet, doPost

(Choose 1 answer)

Which of the elements defined within the taglib element of taglib descriptor file are required?
Select one correct answer.

A. taguri

B. info

C. taglib-location

D. display-name correct answers taglib-location

(Choose 1 answer)

Which of the following method calls can be used to retrieve an object from the session that
was stored using the name "userid"?

A. getValue("userid");

B. get("userid");

C. getAttribute("userid");

D. getParameter("userid");

E. getObject("userid"); correct answers getAttribute("userid");

(Choose 1 answer)

Consider the following doGet method code of a servlet

public void doGet(HttpServletRequest req. HttpServletResponse res)

, {

String command = req.getParameter("command"); if("remove".equals(command))

{

HttpSession session = req.getSession();

//insert code here

}

}

If the command equals remove, you want to unbind an attribute named "user" from the
session. Which of the following option will you use? (Choose one)

A. session.deleteAttribute("user");

B. session.unbindfuser");

C. session.removeAttribute("user");

D. session.remove("user"); correct answers session.removeAttribute("user");

(Choose 1 answer)

Which Java technology provides a standard API for publish-subscribe messaging model?

A. JNDI

B. UDDI

C. JMS

D. JSP correct answers JMS

(Choose 1 answer)

Which of the following statements are correct about HTTP Basic authentication mechanism?

A. HTML FORM is used to capture username and password.

B. Password is transmitted in an encrypted form.

C. Password is transmitted as text

D. Password is transmitted either in encrypted text or in plain text depending on the browser.
correct answers Password is transmitted as text

Document information

Uploaded on
November 26, 2025
Number of pages
28
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.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.
SirAnton
3.7
(118)
Sold
789
Followers
438
Items
39711
Last sold
12 hours 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