Identify the technique that can be used to implement 'sessions' if the client browser does not support cookies (Choose one) A. URL rewriting B. It cannot be done without cookie support. C. Using Http headers.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

help java web  ______--_________

Identify the technique that can be used to implement 'sessions' if the client browser does not support
cookies. (Choose one)
A. URL rewriting
B. It cannot be done without cookie support.
C. Using Http headers.
Given the following deployment descriptor:
<web-app>
<context-param>
<param-name>jdbcDriver</param-name>
<param-value>sun.jdbc.odbc.JdbcOdbc Driver</param-value>
</context-param>
<servlet>
<servlet-name>InitParams</servlet-name>
<servlet-class>InitParams Servlet</servlet-class>
</servlet>
</web-app>
What is the outcome of running the following servlet? (Choose one.)
public class InitParams Servlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
ServletContext sc=this.getServletContext();
Print Writer out = response.getWriter();
out.write("Initialization Parameter is: " + sc.getInitParameter("jdbc Driver"));
A. A runtime error
B. "Initialization Parameter is: sun.jdbc.odbc.JdbcOdbcDriver" returned to the requester
C. "Initialization Parameter is: null" returned to the requester
Transcribed Image Text:Identify the technique that can be used to implement 'sessions' if the client browser does not support cookies. (Choose one) A. URL rewriting B. It cannot be done without cookie support. C. Using Http headers. Given the following deployment descriptor: <web-app> <context-param> <param-name>jdbcDriver</param-name> <param-value>sun.jdbc.odbc.JdbcOdbc Driver</param-value> </context-param> <servlet> <servlet-name>InitParams</servlet-name> <servlet-class>InitParams Servlet</servlet-class> </servlet> </web-app> What is the outcome of running the following servlet? (Choose one.) public class InitParams Servlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { ServletContext sc=this.getServletContext(); Print Writer out = response.getWriter(); out.write("Initialization Parameter is: " + sc.getInitParameter("jdbc Driver")); A. A runtime error B. "Initialization Parameter is: sun.jdbc.odbc.JdbcOdbcDriver" returned to the requester C. "Initialization Parameter is: null" returned to the requester
Which statements are BEST describe pageContext implicit object of jsp file?
A. This javax.servlet jsp.JspWriter object writes text as part of the response to a request. This object is used
implicitly with JSP expressions and actions that insert string content in a response.
B. This java.lang.Object object represents the this reference for the current JSP instance,
C. This javax.servlet.jsp PageContext object hides the implementation details of the underlying servlet and
JSP container and provides JSP programmers with access to the implicit objects discussed in this table
D. This object represents the response to the client. The object normally is an
instance of a class that implements HttpServletResponse (package javax.servlet.http). If a protocol other than
HTTP is used, this object is an instance of a class that implements javax.servlet.ServletResponse.
E. This object represents the client request. The object normally is an instance of a class that implements
HttpServletRequest (package javax.servlet.http). If a protocol other than HTTP is used, this object is an
instance of a subclass of javax.servlet.ServletRequest.
Transcribed Image Text:Which statements are BEST describe pageContext implicit object of jsp file? A. This javax.servlet jsp.JspWriter object writes text as part of the response to a request. This object is used implicitly with JSP expressions and actions that insert string content in a response. B. This java.lang.Object object represents the this reference for the current JSP instance, C. This javax.servlet.jsp PageContext object hides the implementation details of the underlying servlet and JSP container and provides JSP programmers with access to the implicit objects discussed in this table D. This object represents the response to the client. The object normally is an instance of a class that implements HttpServletResponse (package javax.servlet.http). If a protocol other than HTTP is used, this object is an instance of a class that implements javax.servlet.ServletResponse. E. This object represents the client request. The object normally is an instance of a class that implements HttpServletRequest (package javax.servlet.http). If a protocol other than HTTP is used, this object is an instance of a subclass of javax.servlet.ServletRequest.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
VLAN
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education