Sei sulla pagina 1di 5

Aim :

To design a Web Page using Client Side Scripting and DHTML.


Algorithm :
1.Start the program
2.The form will include text fields called "First Name", last Name,Address
etc
3. Validation script will ensure that the user enters their name before the
form is sent to the server.
4. Open this page to see it in action.
5. Try pressing the Place Order button without filling anything field will
return null order
6. You might like to open the source code for this form in a separate window
the page consists of a JavaScript function called validate_form() that
performs the form validation, followed by the form itself.
Ex No: 2.

CLIENT SERVER SCRIPTING PROGRAMS.

Aim :

To develop a simple Client Server Scripting Programs in a single web


page.
Algorithm:

1.Start the program


2. Create a server variable, MyServerVar, and a client variable, MyClientVar.
3. It prints simple text strings to identify each value.
4.The server code marked with the server script tags, <% %> and the client
script shown with <SCRIPT> tags.
5.Stop the program.

AIM:
To write a C program for transferring a file using TCP.

ALGORITHM:
SERVER:
Step 1:Start the program.
Step 2:Create an unnamed socket for the server using parameters AF_INET
as

domain and SOCK_STREAM as type.


Step 3:Get the server port number.
Step 4:Register the host address to the system by using bind() system call in
server
side.
Step 5:Create a connection queue and wait for clients using listen() system
call with
the number of clients requests as parameter.
Step 6:Create a Child process using fork( ) system call.
Step 7:If the process identification number is equal to zero accept the
connection
using accept( ) system call when the client request for connection.
Step 8:If pid is not equal to zero then exit the process.
Step 9:Stop the Program execution.
CLIENT:
Step 1:Start the program.
Step 2:Create an unnamed socket for the client using parameters AF_INET as
domain and SOCK_STREAM as type.
Step 3:Get the client port number.
Step 4:Now connect the socket to server using connect( ) system call.
Step 5:Enter the file name.
Step 6:The file is transferred from client to server using send ( ) function.
Step 7:Print the contents of the file in a new file.
Step 8:Stop the program.

RESULT

Thus the C program for transferring file from one machine to another
machine using TCP is executed and the output is verified successfully.

RESULT
Thus the program for developing E-mail application is executed and the
output is verified successfully.
Ex No :4

Development of Web Services

Aim :
To develop a web service program for calculating Factorial of a
number.
Algorithm :
1.
2.
3.
4.

Start the program.


Give one parameter name x
Data type as int
Click on ok

5. This will create the Web Service code with the name as factorial and
method name as fact1
6. This will be having the annotation as @Webservice ,@Webmethod and
@Webparam
7. Stop the program
Ex No :5 XML and Databases.

PARSING AN XML DOCUMENT USING DOM AND SAX PARSERS.


AIM:
To Parsing an XML document using DOM and SAX Parsers.
ALGORITHM :
Using Dom:
Step1: Get a document builder using document builder factory and
parse the xml file to create a DOM object
Step 2: Get a list of employee elements from the DOM
Step3: For each employee element get the id, name, age and type.
Create an employee value object and add it to the list.
Step4: At the end iterate through the list and print the employees to
verify we parsed it right.
Using Sax
Step1: Create a Sax parser and parse the xml
Step2: In the event handler create the employee object
Step3 : Print out the data
Result :
Thus the Parsing an XML document using DOM and SAX Parsers is
been done and executed successfully.
STUDENT INFORMATION SYTEM USING JSP AND SERVLET
AIM:
To develop the student webpage information using java servlet and
JDBC.
ALGORITHM :
Start the program
Create main HTML page for student database maintenance
Select option to do the following operation
Insertion, search ,delete and modify or update the student recode
RESULT :
Thus student information java script program is successfully
completed.
7. WEB CUSTOMISATION

CREATION OF WEB APPLICATION USING PHP


AIM:
To create a calculator web appliction using php.
ALGORITHM :

Step1 : Start the program


Step2 : Create a php web page calc.php
Step3: Using form and input type tag create various buttons, textbox,
radio button etc.
Step4: calcute the output for various option
Step5: using post method display the result in next page.
Step6: Stop the program.
Result:
Thus the calculator web appliction using php is been developed succesfully.