Anda di halaman 1dari 11

PRACTICAL I ADVANCED JAVA PROGRAMMING

SEMESTER I

Total Hours: 45 CONTENTS 1) Develop program to connect database and get result set from database using JDBC API. 2) Develop program to connect database and insert new record to the existing table using JDBC API. 3) Develop program using HTTPServlet API and read request parameters from the HTML page and process the same and display it. 4) Develop program using HTTPServlet API and read request parameters from the HTML page store the same into HttpSession Object and process it. 5) Develop program using HTTPServlet API and read request parameters from the HTML page and process and store the same into Database. 6) Develop program using JSP API and read request parameters from the HTML page and validate the request values using database. 7) Develop program using JSP API and read request from the user and navigate to another JSP page. 8) Develop program using Statefull Session Bean API 9) Develop program using Stateless Session Bean API 10) Develop program using EntityBean API and insert new record to database.

1) Develop program to connect database and get result set from database using JDBC API.
AIM To write program using JDBC API and connect Oracle Database and retrieve list of records from the database. PRE-REQUEST Student should have knowledge on Database and Sal quires and ODBC. Student should have knowledge on basic of JAVA programming. ALGORITHM Step 1: Start the process. Step 2: Import the package java.sql.*; Step 3: Create Connection to database. Step 4: Open the connection and execute the SQL query (Select) Step 5: Retrieve the Result set from the database Step 6: Display the result into console. Step 7: Close the database connection. Step 8: Stop the process.

2) Develop program to connect database and insert new record to the existing table using JDBC API.
AIM To write program using JDBC API and connect Oracle Database and insert new record into table. PRE-REQUEST Student should have knowledge on Database and Sal quires and ODBC. Student should have knowledge on basic of JAVA programming. ALGORITHM Step 1: Start the process. Step 2: Import the package java.sql.*; Step 3: Create Connection to database. Step 4: Open the connection and execute the SQL query (Insert) Step 5: Retrieve the result form the database Step 6: Display the result into console. Step 7: Close the database connection. Step 8: Stop the process.

3) Develop program using HTTPServlet API and read request parameters from the HTML page and process the same and display it.
AIM To write program using HTTPServlet API and read request from HTML page and display the same. PRE-REQUEST Student should have knowledge on HTML Student should have knowledge on basic of JAVA programming. ALGORITHM Step 1: Start the process. Step 2: Import the package java.http.*; Step 3: Create class should extends HttpServlet Step 4: Override necessary method Step 5: Retrieve value from request parameter Step 6: Display the result into console. Step 7: Stop the process.

4) Develop program using HTTPServlet API and read request parameters from the HTML page store the same into HttpSession Object and process it.
AIM To write program using HTTPServlet API and read request from HTML page and store the same into HttpSession. PRE-REQUEST Student should have knowledge on HTML Student should have knowledge on basic of JAVA programming. ALGORITHM Step 1: Start the process. Step 2: Import the package java.http.*; Step 3: Create class should extends HttpServlet Step 4: Override necessary method Step 5: Retrieve value from request parameter Step 6: Store the request values into session. Step 7: Stop the process.

5) Develop program using HTTPServlet API and read request parameters from the HTML page and process and store the same into Database.
AIM To write program using HTTPServlet API and read request from HTML page and store the same into Databse. PRE-REQUEST Student should have knowledge on HTML Student should have knowledge on basic of JAVA programming. Student should have knowledge on basic of JDBC programming.

ALGORITHM Step 1: Start the process. Step 2: Import the package java.http.*,sql.*; Step 3: Create class should extends HttpServlet Step 4: Override necessary method Step 5: Retrieve value from request parameter Step 6: Store the request values into Database. Step 7: Stop the process.

6) Develop program using JSP API and read request parameters from the HTML page and validate the request values using database
AIM To write program using JSP API and read request from JSP page and process the same with Database PRE-REQUEST Student should have knowledge on HTML Student should have knowledge on basic of JAVA programming. Student should have knowledge on basic of JDBC programming.

ALGORITHM Step 1: Start the process. Step 2: Import the package java.sql.*; Step 3: Create Jsp page and pass the value Step 5: Retrieve value from request parameter Step 6: Store the request values into Database. Step 7: Stop the process.

7) Develop program using JSP API and read request from the user and navigate to another JSP page
AIM To write program using JSP API and read request from JSP page and process, display in the next JSP PRE-REQUEST Student should have knowledge on HTML Student should have knowledge on basic of JAVA programming. Student should have knowledge on basic of JDBC programming.

ALGORITHM Step 1: Start the process. Step 2: Import the package java.sql.*; Step 3: Create Jsp page and pass the value Step 5: Retrieve value from request parameter Step 6: Store the request values into another JSp. Step 7: Stop the process.

PROGRAM

8) Develop program using Statefull Session Bean API


AIM To write program using J2EE API and explain the concept of Statefull Bean PRE-REQUEST Student should have knowledge on RMI Student should have knowledge on basic of JAVA programming.

ALGORITHM Step 1: Start the process. Step 2: Import the package java.ejb.*; Step 3: Create Interface with business methods Step 5: Create class with implements business methods Step 6: Create client and invoke business method Step 7: Stop the process.

PROGRAM

9) Develop program using Stateless Session Bean API


AIM To write program using J2EE API and explain the concept of Stateless Bean PRE-REQUEST Student should have knowledge on RMI Student should have knowledge on basic of JAVA programming.

ALGORITHM Step 1: Start the process. Step 2: Import the package java.ejb.*; Step 3: Create class with implements business methods Step 4: Create client and invoke business method Step 5: Stop the process.

PROGRAM

10) Develop program using EntityBean API and insert new record to database.
AIM To write program using J2EE API and explain the concept of Entity Bean PRE-REQUEST Student should have knowledge on RMI Student should have knowledge on basic of JAVA programming.

ALGORITHM Step 1: Start the process. Step 2: Import the package java.ejb.*; Step 3: Create class with implements business methods Step 4: Create client and invoke business method Step 5: Stop the process.

Anda mungkin juga menyukai