List of Practicals :
1. Write a JavaScript that shows how a variable’s type can be changed on-the-fly.
2. Write a JavaScript that demonstrates the use of +=,-=,*=,/= operators.
3. Create a Form in HTML with two fields, minimum and maximum, write JavaScriptto validate that only numeric value is entered in both, and the value entered inminimum is less than the value entered in maximum.
4. Write a JavaScript that finds out multiples of 10 in 0 to 10000. On the click of buttonstart the timer and stop the counter after 10 seconds. Display on the screen howmany multiples of 10 are found out within stipulated time.
5. Write a JavaScript to generate two random numbers and find out maximum andminimum out of it.
6. Write a JavaScript to remove the highest element from the array and arrange thearray in ascending order.
7. Write a JavaScript to convert Celsius to Fahrenheit.
8. Write a JavaScript to find a string from the given text. If the match is found thenreplace it with another string.
9. Write a JavaScript to show a pop up window with a message Hello and backgroundcolor lime and with solid black border.
10. Write a Servlet to display “Hello World” on browser.
11. Write a Servlet to display all the headers available from request.
12. Write a Servlet to display parameters available on request.
13. Write a Servlet to display all the attributes available from request and context.
14. Write a Servlet which displays a message and also displays how many times themessage has been displayed (how many times the page has been visited).
15. Assume that we have got three pdf files for the MCA-1 Syllabus, MCA-2 Syllabusand MCA-3 Syllabus respectively, Now write a Servlet which displays theappropriate PDF file to the client, by looking at a request parameter for the year (1, 2or 3).
16. Assume that the information regarding the marks for all the subjects of a student inthe last exam are available in a database, Develop a Servlet which takes theenrollment number of a student as a request parameter and displays the marksheet forthe student.
17. Develop a Servlet which looks for cookies for username and password, and forwards
to a home.jsp in case the cookies are valid and forwards to login.jsp, in case the
cookies are not found or the cookies are not valid.
18. Develop a Servlet to authenticate a user, where the loginid and password are
available as request parameters. In case the authentication is successful, it should
setup a new session and store the user's information in the session before forwarding
to home.jsp, which displays the user's information like full name, address, etc.
19. Write a simple JSP page to display a simple message (It may be a simple html page).
20. Write a JSP page, which uses the include directive to show its header and footer.
1. Write a JavaScript that shows how a variable’s type can be changed on-the-fly.
2. Write a JavaScript that demonstrates the use of +=,-=,*=,/= operators.
3. Create a Form in HTML with two fields, minimum and maximum, write JavaScriptto validate that only numeric value is entered in both, and the value entered inminimum is less than the value entered in maximum.
4. Write a JavaScript that finds out multiples of 10 in 0 to 10000. On the click of buttonstart the timer and stop the counter after 10 seconds. Display on the screen howmany multiples of 10 are found out within stipulated time.
5. Write a JavaScript to generate two random numbers and find out maximum andminimum out of it.
6. Write a JavaScript to remove the highest element from the array and arrange thearray in ascending order.
7. Write a JavaScript to convert Celsius to Fahrenheit.
8. Write a JavaScript to find a string from the given text. If the match is found thenreplace it with another string.
9. Write a JavaScript to show a pop up window with a message Hello and backgroundcolor lime and with solid black border.
10. Write a Servlet to display “Hello World” on browser.
11. Write a Servlet to display all the headers available from request.
12. Write a Servlet to display parameters available on request.
13. Write a Servlet to display all the attributes available from request and context.
14. Write a Servlet which displays a message and also displays how many times themessage has been displayed (how many times the page has been visited).
15. Assume that we have got three pdf files for the MCA-1 Syllabus, MCA-2 Syllabusand MCA-3 Syllabus respectively, Now write a Servlet which displays theappropriate PDF file to the client, by looking at a request parameter for the year (1, 2or 3).
16. Assume that the information regarding the marks for all the subjects of a student inthe last exam are available in a database, Develop a Servlet which takes theenrollment number of a student as a request parameter and displays the marksheet forthe student.
17. Develop a Servlet which looks for cookies for username and password, and forwards
to a home.jsp in case the cookies are valid and forwards to login.jsp, in case the
cookies are not found or the cookies are not valid.
18. Develop a Servlet to authenticate a user, where the loginid and password are
available as request parameters. In case the authentication is successful, it should
setup a new session and store the user's information in the session before forwarding
to home.jsp, which displays the user's information like full name, address, etc.
19. Write a simple JSP page to display a simple message (It may be a simple html page).
20. Write a JSP page, which uses the include directive to show its header and footer.