Web Tech Lab Manual 2021
Web Tech Lab Manual 2021
1. Design a jsp page that takes a number as an input from an html page and checks whether
the given number is odd or even and print the table of that number.
2. Create an html page that takes three input principle, rate and time. Call a jsp page that
calculates simple and compound interest and shows proper result.
3. Create an html page that accepts a string as an input and passes to a jsp page that
converts the string into upper case and checks whether it is palindrome or not.
4. Create an html page that accepts your first name and last name as input in two text field.
Pass the values in a jsp page that converts the name into upper case.
5. Write a program in jsp to show the use of session management.
6. Write a program in jsp to display the information of cookies stored in client machine.
7. Design a jsp page that takes input from an html page and checks whether the given
number is prime or not. Display the output with proper message.
8. Create an html page using AJAX that displays students information available in xml
file.
9. Write a program in jsp to display first 30 prime numbers .
10. Save the following xml file as bookstore.xml. Write xml schema for this xml file and
validate it with xml schema.
<bookstore>
<book ISBN="10-000000-001">
<title>The Iliad and The Odyssey</title>
<price>12.95</price>
<comments>
<userComment rating="4"> Best translation I've read. </userComment>
<userComment rating="2"> I like other versions better. </userComment>
</comments>
</book>
<book ISBN="10-000000-999">
<title>Anthology of World Literature</title>
<price>24.95</price>
<comments>
<userComment rating="3"> Needs more modern literature. </userComment>
</comments>
</book>
<book ISBN="11-000000-004">
<title>Great Works of Art</title>
<price>29.95</price>
</book>
</bookstore>
<plant>
<common>columbine</common>
<botanical>aquilegia canadensis</botanical>
<zone>3</zone>
<light>mostly shady</light>
<price>$9.37</price>
<availability>030699</availability>
</plant>
<plant>
<common>marsh marigold</common>
<botanical>caltha palustris</botanical>
<zone>4</zone>
<light>mostly sunny</light>
<price>$6.81</price>
<availability>051799</availability>
</plant>
</catalog>
12. A.) Write XSL code for the catalog.xml file in order to display it in a tabular form.
12. B.) Develop an application using AJAX that read the catalog.xml file and display the
content of it in the web page.
13. Save the following xml file as nutrition.xml and write the DTD for it and validate the
xml.
<nutrition>
<daily-values>
<total-fat units="g">65</total-fat>
<saturated-fat units="g">20</saturated-fat>
<cholesterol units="mg">300</cholesterol>
<sodium units="mg">2400</sodium>
<carb units="g">300</carb>
<fiber units="g">25</fiber>
<protein units="g">50</protein>
</daily-values>
<food>
<name>Avocado Dip</name>
<mfr>Sunnydale</mfr>
<serving units="g">29</serving>
<calories total="110" fat="100"/>
<total-fat>11</total-fat>
<saturated-fat>3</saturated-fat>
<cholesterol>5</cholesterol>
<sodium>210</sodium>
<carb>2</carb>
<fiber>0</fiber>
<protein>1</protein>
<vitamins>
<a>0</a>
<c>0</c>
</vitamins>
<minerals>
<ca>0</ca>
<fe>0</fe>
</minerals>
</food>
</nutrition>
14. Develop an application that contains html page accept data for feedback form and calls
a JSP page that display the content of feedback . (Note: Use different elements like
radio button, check box etc. not just textboxes in feedback form)
15. Develop an application using AJAX and JSP that contains html page that accept email
and check and display a message whether email is present in the database or not. Create
USER01(Firstname,lastname,email).
16. Develop an application using AJAX and JSP that contains a searchbox that accept
username and display the matching record from the database . Create table
USER01(uname,email) in oracle.
17. Develop a student registration page using HTML, JAVASCRIPT, JSP and database
software that stores information in database. Apply all necessary validation in the page.
18. Using HTML, JAVASCRIPT, JSP and database software, develop a login page that
consist of userid, password and date of birth to be matched from database in order to
get logged in. Apply all necessary validation in the page.