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
Exam (elaborations)

PRJ321 || 100% Accurate Solutions.

Rating
-
Sold
-
Pages
34
Grade
A+
Uploaded on
26-11-2025
Written in
2025/2026

PRJ321 || 100% Accurate Solutions.

Institution
PRJ321
Course
PRJ321

Content preview

PRJ321 || 100% Accurate Solutions.
Which tag executes the SQL query defined in its body or through the sql attribute?
Select one:
a.
<sql:executeUpdate>
b.
<sql:executeQuery>
c.
<sql:update>
d.
<sql:query> correct answers d

Which of the following code is used to get an attribute in a HTTP Session object in servlets?
a.session.getAttribute(String name)
b.session.alterAttribute(String name)
c.session.updateAttribute(String name)
d.session.setAttribute(String name) correct answers a

Which is a benefit of precompiling a JSP page?
Select one:
a.It avoids initialization on the first request.
b.It provides better performance on the first request for the JSP page.
c.It avoids execution of the _jspService method on the first request.
d.It provides the ability to debug runtime errors in the application. correct answers b

Given the following statements about an EJB deployment descriptor for which the metadata-
complete attribute is not specified:I. The EJB deployment descriptor can provide additional
metadata to bean class annotations.II. The EJB deployment descriptor can partially override
bean class annotations.III. The EJB deployment descriptor can entirely override bean class
annotations.Which is true?
Select one:
a.Both statements I and III are correct.
b.Only statement I is correct.
c.Only statement II is correct.
d.Both statements I and II are correct.
e.Only statement III is correct. correct answers d

A ________has a name, a single value, and optional attributes such as a comment, path and
domain qualifiers, a maximum age, and a version number correct answers cookie

${101 % 10}
A. 1
B. 10
C. 1001
D. 101 % 10 correct answers a

Which will be output of following code when the query string is
firstname=John&lastname=Doe?
A. John Doe

,B. John Doe Doe
C. John null Doe
D.John null doe doe correct answers b

Which is true about TLD files?
a.TLD files may be placed in the META-INF directory of the WAR file.
b.TLD files can declare both Simple and Classic tags, but TLD files are NOT used to declare
Tag files.
c.TLD files may be placed in any subdirectory of WEB-INF.
d.TLD files are used to configure JSP environment attributes, such as scripting-invalid.
correct answers c

Assuming the standard JSTL prefix conventions are used, which JSTL tags would you use to
iterate over a collection of objects?
A. <x:forEach>
B. <c:iterate>
C. <c:forEach>
D. <c:forTokens> correct answers c

Which of the following is not a valid implicit object in EL?
A. header
B. headerValues
C. params
D. paramValues correct answers c

Assuming the appropriate taglib directives, which is not valid examples of custom tag usage?
A. <foo:bar/>
B. <my:tag> </my:tag>
C. <mytag value="x" />
D. <c:out value="x" /> correct answers c

What is the return type of the getLastModified method of HttpServlet?
a.java.sql.Date
b.java.util.Date
c.int
d.long correct answers d

What object will represent the output stream for the JSP page?
a.writer
b.out
c.response
d.dispatch correct answers b

What are differences between Pull-MVC and push-MVC based architecture ?
Select one:
a.
Pull-MVC means transfer data from client to server, whereas Push MVC means render data
from server to client by View.
b.
None of the others

,c.
The difference on how the view layer is getting data to render. Struts 1 is Push MVC while
Struts 2 is PULL MVC
d.
Push-MVC means transfer data from client to server, whereas Pull MVC means render data
from server to client by View. correct answers c

Which of following statement are true about EL and OGNL? Choose 3.
Select one or more:
a.
OGNL stands for Object graph navigation language,which is used internally by Struts2
b.
EL interacts with the objects by means of getters/setters, OGNL supports whatever EL does
along with lambda experssion,
c.
Struts application can use OGNL or EL in JSPs
d.
Struts application can only use OGNL in JSPs correct answers abc

Choose correct statement on custom tag:
a.Only session object available inside tag handler class.
b.Custom tag handler class reference implicit objects via JspContext
c.Implicit objects is automatically available inside tag handler class
d.Custom tag handler class can not reference implicit objects in JSP page correct answers b

What is the purpose of @UrlValidator annotation?
a.This annotation checks that a field is non-null.
b.This annotation checks that a String field is of the right length.
c.This annotation checks that a field is a valid URL.
d.This annotation checks that a String field is not empty correct answers c

JSTL stands for
Select one:
a.
Enterprise JavaBean Standard Tag Library
b.
Servlet Pages Standard Tag Library
c.
JavaBean Standard Tag Library
d.
JavaServer Pages Standard Tag Library correct answers d

Which method we must override in the extend ActionSupport class to provide the
implementation of validation in Struts 2?
a.validate() method for each input data
b.validate() method
c.checkParams() method
d.input() method correct answers b

What object will represent the output stream for the JSP page?

, a.out
b.response
c.dispatch
d.writer correct answers a

What are the requirements of a message-driven bean ( EJB 3.x) class? ( Select three)
Select one or more:
a.It is annotated with @MessageDriven annotation
b.It implements onMessage( ) method
c.It implements the MessageListener interfaces
d.It implements receive( ) method correct answers abc

You are given a tag library that has a tag named printReport. This tag may accept an attribute,
department, which cannot take a dynamic value. Which of the following are correct uses of
this tag? ( Select two)
Select one or more:
a.<mylib:printReport department="finance"/>
b.<mylib:printReport attribute="department" attribute-value="finance"/>
c.<mylib:printReport/>
d.<mylib:printReport><jsp:attribute name="department" value="finance"
/></mylib:printReport>
e.<mylib:printReport attribute="department" value="finance"/> correct answers ac

Which of the following methods must be overridden in Action class?
Select one:
a.
execute()
b.
init()
c.
dofilter()
d.
destroy() correct answers a

The deployment descriptor for a stateless session bean that uses the isCallerInRole method
reads as follows:3. <security-role-ref>4. <role-name>manager</role-name>5. <role-
link>humanresources</role-link>6. <security-role-ref>16. <security-role>17.
<description>18. Is allowed to view and update all employee records.19. </description>20.
<role-name>humanresources</role-name>21. </security-role>Which two roles are
responsible for creating this deployment descriptor? ( Choose two.)
Select one or more:
a.Bean Provider
b.Deployer
c.System Administrator
d.Application Assembler correct answers ad

Which is true about TLD files?
a.TLD files are used to configure JSP environment attributes, such as scripting-invalid.
b.TLD files can declare both Simple and Classic tags, but TLD files are NOT used to declare
Tag files.

Written for

Institution
PRJ321
Course
PRJ321

Document information

Uploaded on
November 26, 2025
Number of pages
34
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$16.79
Get access to the full document:

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


Also available in package deal

Get to know the seller

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 NURSING, ECONOMICS, MATHEMATICS, BIOLOGY, AND HISTORY MATERIALS BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS, AND STUDY GUIDE MATERIALS WITH GUARANTEED A+ I am a dedicated medical practitioner with diverse knowledge in matters
Follow You need to be logged in order to follow users or courses
Sold
774
Member since
3 year
Number of followers
438
Documents
38536
Last sold
1 week ago
Reign Supreme Scholarly || Enlightened.

Get your revised study materials available here and elevate your educational outcomes. I have numerous verified learning materials (Research, Exams Questions and answers, Assignments, notes etc) for different courses guaranteed to boost your academic results. I am dedicated to offering you the best and unique learning content. You are encouraged to inquire further assistance from this end whenever need be. Kindly remember to leave your review, understanding your satisfaction is essential . We highly appreciate clients who always come back for more of the study content we offer, you are extremely valued. All the best.

Read more Read less
3.7

116 reviews

5
49
4
20
3
23
2
8
1
16

Recently viewed by you

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