100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

PRJ301 Already Rated A+

Puntuación
-
Vendido
-
Páginas
26
Grado
A+
Subido en
01-10-2024
Escrito en
2024/2025

PRJ301 Already Rated A+ Which of the following files is the correct name and location of deployment descriptor of a web application. Assume that the web application is rooted at doc-root. Select the one correct answer A. B. C. doc-rootWEB-INF D. doc-rootWEB_INF E. doc-rootWEB-INF F. doc-rootWEB_INF G. doc-rootWEB-INF H.doc-rootWEB-INF ️C 2. Which element of the servlet element in the deployment descriptor is used to specify the parameters for the ServletConfig object. Select the one correct answer. A. aservlet-config B. init-param C. load-on-startup D. filter ️B 3. Which of these is true about deployment descriptors. Select the one correct answer. A. The order of elements in deployment descriptor is not important. The elements can follow any order. B. The elements of deployment descriptor are case insensitive. C. The servlet-mapping element, if defined, must be included within the servlet element. D. The web-app element must include the servlet element. ️A 4. The exception-type element specifies an exception type and is used to handle exceptions generated from a servlet. Which element of the deployment descriptor includes the exception-type as a sub element. Select the one correct answer. A. error-page B. servlet C. exception D. error-handling ️A 5. Which of these is a correct fragment within the web-app element of deployment descriptor. Select the one correct answer. A. <exception> <exception-type> mypackage.MyException</exception-type> <location> /</location> </exception> B. <error-page> <exception-type> mypackage.MyException</exception-type> <location> /</location> </error-page> C. <error-page> <exception> mypackage.MyException </exception-type> <location> / </location> </error-page> D. <error-page> <exception-type> mypackage.MyException</exception-type> </error-page> F. <error-page> <servlet-name> myservlet</servlet-name> <exception-type> mypackage.MyException</exception-type> </error-page> G. <exception> <servlet-name> myservlet</servlet-name> <exception-type> mypackage.MyException</exception-type> </exception> ️B 6. Which element of the deployment descriptor of a web application includes the welcome-file-list element as a subelement. Select the one correct answer. A. web-app B. welcome-file C. servlet D. file-list ️A 7. Which of these is a correct fragment within the web-app element of deployment descriptor. Select the two correct answer. A. <error-page> <error-code>404</error-code> <location>/</location> </error-page> B. <error-page> <exception-type>mypackage.MyException</exception-type> <error-code>404</error code> <location>/</location> </error-page>

Mostrar más Leer menos
Institución
PRJ301 Already Rated A+
Grado
PRJ301 Already Rated A+










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
PRJ301 Already Rated A+
Grado
PRJ301 Already Rated A+

Información del documento

Subido en
1 de octubre de 2024
Número de páginas
26
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Vista previa del contenido

PRJ301 Already Rated A+

Which of the following files is the correct name and location of deployment descriptor of a web
application. Assume that the web application is rooted at doc-root. Select the one correct answer

A. doc-rootdd.xml

B. doc-rootweb.xml

C. doc-rootWEB-INFweb.xml

D. doc-rootWEB_INFdd.xml

E. doc-rootWEB-INFdd.xml

F. doc-rootWEB_INFweb.xml

G. doc-rootWEB-INFlibdd.xml

H.doc-rootWEB-INFclassesdd.xml ✔️C



2. Which element of the servlet element in the deployment descriptor is used to specify the parameters
for the ServletConfig object. Select the one correct answer.

A. aservlet-config

B. init-param

C. load-on-startup

D. filter ✔️B



3. Which of these is true about deployment descriptors. Select the one correct answer.

A. The order of elements in deployment descriptor is not important. The elements can follow any order.

B. The elements of deployment descriptor are case insensitive.

C. The servlet-mapping element, if defined, must be included within the servlet element.

D. The web-app element must include the servlet element. ✔️A



4. The exception-type element specifies an exception type and is used to handle exceptions generated
from a servlet. Which element of the deployment descriptor includes the exception-type as a sub-
element. Select the one correct answer.

A. error-page

,B. servlet

C. exception

D. error-handling ✔️A



5. Which of these is a correct fragment within the web-app element of deployment descriptor. Select
the one correct answer.



A. <exception> <exception-type> mypackage.MyException</exception-type> <location>
/error.jsp</location> </exception>

B. <error-page> <exception-type> mypackage.MyException</exception-type> <location>
/error.jsp</location> </error-page>

C. <error-page> <exception> mypackage.MyException </exception-type> <location> /error.jsp
</location> </error-page>

D. <error-page> <exception-type> mypackage.MyException</exception-type> </error-page>

F. <error-page> <servlet-name> myservlet</servlet-name> <exception-type>
mypackage.MyException</exception-type> </error-page>

G. <exception> <servlet-name> myservlet</servlet-name> <exception-type>
mypackage.MyException</exception-type> </exception> ✔️B



6. Which element of the deployment descriptor of a web application includes the welcome-file-list
element as a subelement. Select the one correct answer.

A. web-app

B. welcome-file

C. servlet

D. file-list ✔️A



7. Which of these is a correct fragment within the web-app element of deployment descriptor. Select
the two correct answer.



A. <error-page> <error-code>404</error-code> <location>/error.jsp</location> </error-page>

B. <error-page> <exception-type>mypackage.MyException</exception-type> <error-code>404</error-
code> <location>/error.jsp</location> </error-page>

, C. <error-page> <exception-type>mypackage.MyException</exception-type> <error-code>404</error-
code> </error-page>

D. <error-page> <exception-type>mypackage.MyException</exception-type>
<location>/error.jsp</location> </error-page> ✔️AD



8. Which of these is a correct example of specifying a listener element resented by MyClass class.
Assume myServlet element is defined correctly. Select the one correct answer.

A. <listener>MyClass</listener>

B. <listener> <listener-class>MyClass</listener-class></listener>

C. <listener> <listener-name>aListener</listener-name> <listener-class>MyClass</listener-class>
</listener>

D. <listener> <servlet-name>myServlet</servlet-name> <listener-class>MyClass</listener-class>
</listener> ✔️B



9. The root of the deployment descriptor is named as

A. web

B. web-app

C. name

D. display-name ✔️B



10. With in a context-param element of deployment descriptor, which of the following element is
required?

A. param-name

B. name

C. init-param

D. servlet-name ✔️A



11. Which of these is not a valid top level element in web-app

A. icon

B. listener

C. eror-page

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
CertifiedGrades Chamberlain College Of Nursing
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
141
Miembro desde
2 año
Número de seguidores
61
Documentos
8748
Última venta
1 mes hace
High Scores

Hi there! Welcome to my online tutoring store, your ultimate destination for A+ rated educational resources! My meticulously curated collection of documents is designed to support your learning journey. Each resource has been carefully revised and verified to ensure top-notch quality, empowering you to excel academically. Feel free to reach out to consult with me on any subject matter—I'm here to help you thrive!

3.9

38 reseñas

5
21
4
6
3
2
2
3
1
6

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes