d correct answers (Choose 1 answer)
Data Integrity is the biggest issue for your web application. What will you do? (Choose one)
A. Use HTTPS instead of HTTP.
B. Use LDAP to store user credentials.
C. Use HTTP digest authentication.
D. Use form-based authentication.
c correct answers (Choose 1 answer)
Which jsp tag is needed to ensure that implicit variable 'exception' is available in the page
that is meant to be an error page? (Choose one)
A. <%@isErrorPage="true"%>
B. <%@ page errorPage="this"%>
C. <%@ page isErrorPage="true"%>
D. <%@errorPage="true"%>
b correct answers (Choose 1 answer)
Identify correct statement about a WAR file.(Choose one)
A. It is used by web application developer to deliver the web application in a single unit
B. It contains web components such as servlets as well as EJBs.
C. It cannot contain third party jar and class files.
D. It cannot be unpackaged by the container.
E. It is an XML document
c correct answers (Choose 1 answer)
Where the bean is declared using the following useBean tag accessible? <jsp:useBean
id="jbean" class="com.jclass.JBean" />
A. within other servlets and JSP pages of the same web applications.
B. throughout all future invocations of the JSP as long as the servlet engine is running.
, C. Throughoutthe remainder of the page.
D. throughout all future invocations of the JSP as long as the session is not expired
d correct answers (Choose 1 answer)
Which of the following statement correctly set a cookie from a servlet code? (Choose one)
Assume that response and request refer to HttpServletResponse and HttpServletRequest
respectively.
A. requestsetCookie("mycookie". "value");
B. response.addCookiefmycookie". "value");
C. response.setCookie("mycookie". "value");
D. response.addCookie(newCookie("mycookie". "value"));
a correct answers (Choose 1 answer)
Which statements are BEST describe contentType attribute of<%@ page contentType=_.%>
directive?
A. Specifies the MIME type of the data in the response to the client The default type is
text/html.
B. 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.
C. Specifies the class from which the translated JSP will be inherited. This attribute must be a
fully qualified package and class name.
D. 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 excep
a correct answers (Choose 1 answer)
The following line of code exists in the doGet method of Servlet String sid =
request.getParameter("jsessionid");
Which of the option is NOT a standard technique for retrieving the HttpSession associated
with the request? (Assume that the session has already been created.)
A. HttpSession session = requestgetSession(sid):
B. HttpSession session = requestgetSession():
C. HttpSession session = requestgetSession(false):