2CS2010303 - Advance Java Programming
2CS2010303 - Advance Java Programming
Course Objective:
The objectives of the course are to:
• Understand the concepts of Database Programming using JDBC.
• Gets a better understanding of developing web-based applications using Servlets & JSP.
• Understand the concept of developing web-based applications using MVC Architecture.
Subject Contents
Sr. Total Weight
Topic
No Hours (%)
JDBC: 10 15
1 Accessing Databases with JDBC, Loading JDBC Driver, Establishing Connection, Creating
Statements, Executing SQL and Processing Results of a Query, Using Prepared Statement,
Using Callable Statement, Using Database Transactions
2 Basics of Sevlets, Handling Client Request, Server Response, Request and Response 14 35
Headers & Basics of Session Management:
Servlets:
Servlet Basics, Basic Servlet structure, Servlets Generating text/html content, Packaging
Servlets, The servlet life-cycle.
Client Request & Request Headers:
Handling Client Request Form Data, Reading Form Data from Servlets, Handling Client
Request, Reading Request Headers, Understanding HTTP/1.1 Request Headers, Changing
the page according to how the user got there.
Server Response & Response Headers:
Generating the Server Response, HTTP Status Codes, Specifying Status Codes, HTTP / 1.1
Status Codes, Using Redirections, HTTP Response Headers, Setting Response Headers
from Servlets, Understanding HTTP / 1.1 Response Headers, Using Servlets to Generate
JPEG Images
Session Management:
Benefits of Cookies, Problem with Cookies, Deleting Cookies, Sending and Receiving
Cookies, Using Cookie Attributes, Differentiating Session Cookies from Persistent Cookies,
Using Cookies to Remember User Preferences, Session Tracking, Need for Session
Tracking, Session Tracking basics, Session Tracking API, Encoding URLs Sent to the Client.
JSP & JSP Expression Language (EL): 14 35
JSP:
3
JSP Basics, JSP Directives, Using JSP Scripting Elements, Using JSP Standard Action, JSP
implicit objects/Predefined Variables and their scope
JSP Expression Language (EL):
JSP Expression Language, Accessing Scoped Variables, Bean Properties, Collections and
Implicit Objects Using EL, Using EL Operators
FACULTY OF COMPUTER SCIENCE
Master of Computer Application (Sem-III)
In Effect from Academic Year 2021-22
Course Outcome:
At the end of this course, the student would be able
To create Web applications using Servlets and JSP, following MVC architecture for developing web
applications
To fetch data from a database server and use in a web application.
To use EL in JSP page.
List of References:
1. Ivan Bayross, “Web Enabled Commercial Application Development Using HTML, DHTML
2. Marty Hall, Larry Brown, “Core Servlets and JavaServer Pages Volume – 1”, Pearson Education, 2nd
Edition. (2004)
3. Subrahmanyam Allamaraju, “Professional Java Server Programming J2EE 1.3 Edition”, Apress (2007).
4. Marty Hall, Larry Brown, Yaakov Chaikin, “Core Servlets and Java Server Pages Volume – 2”, Pearson
Education, 2nd ed.(2004)
List of Experiments:
Note: The experiment list provided beneath is for reference only. The course teacher may Change/formulate it as
per his/her methodology and requirement.
1.4 Develop a Graphical User Interface that performs the following SQL operations: a) Insert b)
Delete c)Update.
1.5 Develop a program to present a set of choice for user to select a product and display the
price of product using database
2. 2.1 Write a Servlet to display “Hello World” on browser.
2.2 Write a Servlet to display all the headers available from request.
2.3 Write a Servlet to display parameters available on request.
2.4 Assume that we have got three pdf files for the MCA-1 Syllabus, MCA-2 Syllabus and MCA-3
Syllabus respectively, Now write a Servlet which displays the appropriate PDF file to the
client, by looking at a request parameter for the year (1, 2 or 3).
2.5 Develop a Servlet to authenticate a user, where the loginid and password are available as
request parameters from database table Login. In case the authentication is successful, it
should setup a new session and store the user's information in the session before forwarding
FACULTY OF COMPUTER SCIENCE
Master of Computer Application (Sem-III)
In Effect from Academic Year 2021-22
to home.jsp, which displays the user's information like full name, address, etc.
2.6 Develop an interest calculation application in which user will provide all information in HTML
form and that will be processed by servlet and response will be generated back to the user.
2.7 Develop an application to demonstrate how the client (browser) can remember the last time
it visited a page and displays the duration of time since its last visit. (Hint: use Cookie)
3. 3.1 Write a simple JSP page to display a simple message (It may be a simple html page).
3.2 Write a JSP page, which uses the include directive to show its header and footer.
3.3 Write a JSP Page to use JSP scripting elements.
3.4 Develop an application to write a "page-composite" JSP that includes other pages or passes
control to another page. (Hint: Use <jsp:include> or <jsp:forward>).
3.5 Develop a JSP Page to display the personal information and result information of the student
in two different tabular formats.
3.6 Develop a JSP Page to perform database driven operations like insert, Delete, Update and
selection with table named Student having fields like StudId, Name, Address, result.
3.7 Write a JSP Page to which uses Session Tracking for online shopping.