0% found this document useful (0 votes)
2 views9 pages

WEB_PROGRAM[1]

The document outlines various programming tasks using JavaScript, JSP, and ASP, including changing text case, validating usernames and passwords, displaying current date and time, and user authentication. Each task includes an aim and a step-by-step algorithm for implementation. The document serves as a guide for creating web applications with specific functionalities.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
2 views9 pages

WEB_PROGRAM[1]

The document outlines various programming tasks using JavaScript, JSP, and ASP, including changing text case, validating usernames and passwords, displaying current date and time, and user authentication. Each task includes an aim and a step-by-step algorithm for implementation. The document serves as a guide for creating web applications with specific functionalities.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 9

1.

CHANGE CASE USING JAVASCRIPT

AIM:

To write a java script code block which check the contents entered in a form’s text element in
entered is in the lowercase to uppercase.

ALGORITHM:

Step1: Start the program

Step2: Create the HTML document using notepad

Step3: Create a textbox with value name of enter text to convert lowercase to uppercase

Step4: Create two button with name of lowercase and uppercase

Step5: Create an another textbox for result

Step6: To write appropriate java script code

Step7: Declare the variable “data” get value in lowercase or uppercase

Step8: Declare the function name

Step9: Save the program though with the HTML extension

Step10: Run the program though web server

Step11: Stop the program.

RESULT:

The above program was successfully executed.


2. VALIDATION FOR UERNAME AND PASWORD USING JAVASCRIPT

AIM:

To write a java script code block, which validates an username and password.

(a) If either the name of password fields is not entered display a error message.
(b) The fields entered do not match with default values display an error.
(c) I f the field are matched display the welcome message.

ALGORITM:

Step1: Start the program

Step2: Create the HTML document using notepad

Step3: To write a java script code

Step4: Declare the function name

Step5: Create the textboxes for username, password, confirm password

Step6: Create two buttons for submit and reset

Step7: The user will be blank then display an error message

Step8: If the password contains at least to letter and password different from username and
password contains at least one number and one lowercase and one uppercase, otherwise
display an error message.

Step9: The password that matches confirm password then check the submit button that display
the welcome massage

Step10: save the program with HTML extension

Step11: Run the program through the web server

Step12: Stop the program.


3. TO DISPLAY CURRENT DATE AND TIME USING JAVASCRIPT

AIM:

To write a java script code to display the current date and time in a browser

ALGORITHM:

Step1: Start the program

Step2: Create the HTML document using notepad

Step3: Write java script code to display the current date and time

Step4: Declare the variable as “d”

Step5: Get the values of data (), month (), year (), hours (), minutes (), seconds () with variable d

Step6: Save the program with HTML extension

Step7: Run the program through web server

Step8: Stop the program.


5. JSP PROGRAM FOR USING AUTHENTICATION

AIM:

To write a JSP program for user authentication

ALGORITHM:

Step1: Start the program

Step2: Create the HTML document using notepad

Step3: Create the new form and design the two textbox with the name first name and last
name and one submit button saved with HTML extension

Step4: Write the case for to information from HTML file with the appropriate directions
directives and save the file named as main JSP

Step5: Run the main JSP file through

Step6: Display the result

Step7: Stop the process


6. ASP PROGRAM USING RESPONSE AND REQUEST OBSECT

AIM:

To write a ASP program using response and request object.

ALGORITHM:

Step1: Start the program

Step2: To design the HTML from using textboxes for setting the values of ice creams and its
flavor

Step3: To create one submit button on click the same submit button the page is posted to
another ASP file using post method

Step4: To create ASP file to design with ice-cream and its file to enters the appropriate the
result using request and response object

Step5: save the program

Step6: Run the main JSP file through the web server

Step7: Display the result

Step8: Stop the program.


CONTENTS
S.NO DATE TITLE PAGE SIGN
NO.
01 CONVERTING LOWERCASE INTO UPPERCASE-JAVASCRIPT
02 VALIDATION FOR USERNAME AND PASSWORD USING JAVASCRIPT
03 TO DISPLAY CURRENT DATE AND TIME USING JAVASCRIPT
04
05 JSP PROGRAM FOR USING AUTHENTICATION
06 ASP PROGRAM USING RESPONSE AND REQUEST OBJECT
07

You might also like