Q.1. Write answers for any two
questions from below. (5 marks each – Word limit – 500)
A. Demonstrate about javax.sql package in detail. Briefly write on
Sharing Data between JSP
pages and Requests.
B. Write the java servlet program that retrieves the date and time of the
previous session and explain.
C. Write a client server jsp program to find simple interest and display
the result in the client.
Ans
A:
javax.sql package: This package provides the APIs for accessing and processing data which is
stored in the database especially relational database by using the java programming
language. It includes a framework where we different drivers can be installed
dynamically to access different databases especially relational databases.
This java.sql
Ans c.
Server jsp program to find simple
interest:
<%--
Document : interest
Created on :
Author
:
--%>
<%@page Its Half solved only
SURESH GYAN VIHAR University Fully solved assignment available
Lowest
price guarantee with quality.
Charges INR 300 only per assignment. For
more information you can get via mail or Whats app also
Mail id is aapkieducation@gmail.com
Our website www.aapkieducation.com
After
mail, we will reply you instant or maximum
1 hour.
Otherwise
you can also contact on our
whatsapp no 8791490301.
Contact no is +91 87-55555-879
Q.2. Write short notes on all of the
following topics (1 mark each - Word limit - 100)
A. Bin Directory
B. What is the purpose of php.ini file?
C. math function
D. For what purpose destroy
E. What are the different web servers you know?
Ans 1.
A. Bin Directory: bin is a standard subdirectory of the root directory in Unix-like
operating systems that contains the executable (i.e., ready to run) programs
that must be available in order to attain minimal functionality for the
purposes of booting (i.e., starting) and repairing a system.
The root directory,
|
INTERNAL
ASSIGNMENT - 2 |
|
Course |
MCA |
Advanced Internet Technologies |
Semester |
5 |
|
Total Marks: |
15 |
Q.1. Write answers for any two questions from below. (5 marks each – Word
limit – 500)
A. Describe in detail the lifecycle of a servlet.
A servlet life cycle can be defined
as the entire process from its creation till the destruction. The following are
the paths followed by a servlet.
·
The
servlet is
B. Write a short note on: a. Thread safe servlets b. ServletContext and
ServeletConfig c. GenericServlet and HTTPServlet
a. Thread safe servlets:
Each servlet request is served by one
instance of servlet (Generally speaking) so separate thread is created by
container for entertaining each request and servlet container may send
concurrent requests through the service method of the servlet. So in order to
handle the requests concurrently, if the Servlet Developer make adequate
provisions for concurrent processing with multiple threads in the service
method then
C. Write short notes on: a. HTTP request and HTTP response b. GET and
POST c. Pattern matching in Perl
Q.2. Write short notes on all of the
following topics (1 mark each - Word limit - 100)
A. How does a servlet communicate with a
JSP page?
B. WebApplicationContext
C. Config object
D. Write HTTPS vs HTTP.
E. Conf Directory
Ans:
A. How does a servlet communicate with a
JSP page:
Servlet JSP Communication:
getServletConfig().getServletContext().getRequestDispatcher(“jspfilepathtoforward”).forward(request,
response);
The above line is essence of the
answer for “How does a servlet communicate with a JSP page?”
When a servlet
No comments:
Post a Comment