Advanced Java procedure(2024)
Advanced Java procedure(2024)
Result: Thus the program to prepare an employee pay slip using JSP was executed.
6. Write a program using JBDC for creating a table, inserting, deleting records and
list out the records.
Creating Database in MS Access:
Open Access → Blank database → Type file name(database name) in the
textbox, for example Test
Click Create
Right Click on Table1 → design view
Type the table name, for example address, Click OK.
Then enter the field names and the required data types
Right Click on address → save the table.
Result: Thus the program using JBDC for creating a table, inserting, deleting
records and list out the records was executed.
Result: Thus the using java servlet to handle form data was executed.
8. Write a simple servlet program to create a table of all the headers it receives
along with their associated values.
Result: Thus the simple servlet program to create a table of all the headers it
receives along with their associated values was executed.
Result: Thus the program in JSP by using session object was executed.
10. Write a program to build a simple Client Server application using RMI.
Procedure:
Result: Thus the program to build a simple Client Server application using RMI
was executed.
Result: Thus the program to create an applet for calculator application is executed.
12. Write a Program to send a text message to another system and receive the text
message from the system (use socket programming)
Procedure:
Step 1: Enter the code in Notepad and save it as MyClient.java and MyServer.java
Step 2: Open the first command prompt
Step 3: Enter the following commands
C:\Users\ADMIN>D:
D:\>cd mca
D:\mca>set path="C:\Program Files (x86)\Java\jdk1.6.0\bin"
D:\mca>javac MyClient.java
D:\mca>java MyClient
Step 4: Open the second command prompt
Step 5: Enter the following commands
C:\Users\ADMIN>D:
D:\>cd mca
D:\mca>set path="C:\Program Files (x86)\Java\jdk1.6.0\bin"
D:\mca>javac MyServer.java
D:\mca>java MyServer
Step 6: Send a text message from Server to Client. For example, hello
Step 7: The message was displayed in the Client page as “Server says: hello”
Step 8: Send a text message from Client to Server. For example, hi
Step 9: The message was displayed in the Server page as “Client says: hi”
Step 10: The conversation will be stopped when both the side receives the “stop”
message
Result: Thus the program to create an applet for a calculator application was
executed