PRJ321 Remember

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which statements are BEST describe taglib directive of JSP file

Allows programmers to include their own new tags in the form of tag libraries. These libraries can be used to encapsulate functionality and simplify the coding of a JSP.

Which statements are BEST describe errorPage attribute of <%@ page errorPage=....%> directive?

Any exceptions in the current page that are not caught are sent to the error page for processing. The error page implicit object exception references the original exception.

Which statements are BEST describe <jsp:include> Action?

Dynamically includes another resource in a JSP. As the JSP executes, the referenced resource is included and processed.

The requirementfor an online shopping application are: It must support millions of customers. The invocations must be transactional. The shopping cart must be persistent Which technology is required to support these requirements?

EJB

A <servlet> element can include zero to many <init-param> elements: These aid in passing initialization parameter information from the deployment descriptor to all the servlets.

False

A state sesion bean must commit a transaction before a business method

False

An objectwith page scope exists in every JSP ofa patticularWeb application.

False

Each page has its own instances of the page-scope implicit objects.

False

If you want the same Servlet to handle both GET and POST and to take the same action for each , you can simply have doGet call doPost , or vice versa

False

Message-driven beans do not have any return value

False

The deployment descriptor of a web application must have the name wb.xml. In the same way the tag library descriptor file must be called taglib.xml

False

When implementing a tag, if the tag does not include the body ,then the tag handler lass must extend the BodyTagSupport class.

False

Which statements are BEST describe <jsp:setProperty> Action?

Gets a property in the specified JavaBean instance and converts the result to a string for output in the response.

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

JMS

The sendRedirect method defined in the HttpServlet class is equivalent to invoking the setStatus method with the following parameter and a Location header in the URL. Select the one correct answer.

SC_MOVED_TEMPORARILY

The sendError method defined in the HttpServlet class is equivalent to invoking the setStatus method with the following parameter. Select the one correct answer.

SC_NOT_FOUND

Which statements are BEST describe <jsp:getProperty> Action?

Sets a property in the specified JavaBean instance. A special feature of this action is automatic matching of request parameters to bean properties of the same name.

Which statements are BEST describe isErrorPage attribute of <%@ page isErrorPage=....%> directive

Specifies if the current page is an error page that will be invoked in response to an error on another page. If the attribute value is true, the implicit object exception is created and references the original exception that occurred.

Which statements are BEST describe contentType attribute of<%@ page contentType=_.%> directive?

Specifies the MIME type of the data in the response to the client The default type is text/html.

Which statements are BEST describe uri attribute <%@ taglib uri=_%>

Specifies the relative or absolute URI of the tag library descriptor

Which statements are BEST describe prefix attribute of <%@ taglib prefix=...%>directive of JSP file?

Specifies the required prefix that distinguishes custom tags from built-in tags. The prefix names jsp, jspx, java, javax, servlet, sun and sunw are reserved.

Which statements are BEST describe param attribute of <jsp:setProperty param=_. /> Action?

The ID of the JavaBean for which a property (or properties) will be set

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

The ID of the JavaBean for which a property (or properties) will be set.

Which statement are BEST describe class attribute of <jsp:useBean class= ... /> Action?

The fully qualified class name of the Java object

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

The fully qualified class name of the Java object

Which statements are BEST describe id attribute of <jsp:useBean id=..... /> Action?

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 case sensitive.

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

The scope in which the Java object is accessible-page. request session or application. The default scope is page.

Which statements are BEST describe page implicit object of jsp file?

This java.lang.Object object represents the this reference for the current JSP instance.

Which statements are BEST describe response implicit object ofjsp file?

This object represents the response to the client The object normally is an instance ofa class that implements HttpServletResponse (package javaxservlethttp). lfa protocol otherthan HTTP is used. this object is an instance ofa class that implements javaxservletServletResponse.

A custom tag can be nested inside another custom tag

True

Action <jsp:setProperty> has the ability to match request parameters to properties of the same name in a bean by specifying "*" for attribute property

True

Each page has its own instances of the page-scope implicit objects.

True

GET requests and POST requests can both be used to send form data to a web server.

True

Objects with application scope are part of a particular Web application.

True

Servlet methods are executed automatically.

True

The same servlet class can be declared using different logical names in the deployment descriptor.

True

URL rewriting may be used when a browser is disabled. In URL encoding the session id is included as part of the URL.

True

When you obtain a session (using getSession() of HttpServletRequest object), the web container manufactures a unique ID string for the session. This is passed as a token between the client and server.

True

lf the isThreadSafe attribute ofthe page directive is true. then the generated servlet implements the SingleThreadModel interface.

True

In which ofthe following cases will the method doEndTagO ofa tag handler be invoked?

lt will be invoked only if doStartTagO or doAfterBodyO return Tag.DO_END_TAG.

JSP ________ let you insert arbitrary code into the servlet's _JspService method (which is called by service).

scriptlets


संबंधित स्टडी सेट्स

Chapter 1 quiz fill in the blank( medical terminology)

View Set

DHO Chapter 7:1 Basic Structure of the Human Body - 7:2 Body Planes, Directions, and Cavities.

View Set

Fundamentals of Management: Chapter 14

View Set

Chapter 5 - Gross Income and Exclusions

View Set

11th Grade Louise Erdrich Short Story Links

View Set

Elements and Compounds - Unit 3 - Review Sheet

View Set