Write JSP programs which can perform the following tasks (you may create a single or multiple webpages for these tasks):
(i) Write a JSP code to create a simple web page that accepts user input for two variables, namely alpha and beta. After the successful input to these variables, the JSP program should display the values entered for the alpha and beta variables, along with the result of their multiplication.
(ii) Create a web page that takes input in two fields, namely the student ID and the Programme of the student. In case the data is correctly entered in both fields, two cookies, one for the student ID and the second for the Programme of the student, are created.
d ) Create a database for the Student Examination System consisting of the following two tables:
Student (StudentID, Name, ProgrammeCode, DateOfEnrolment)
FeePaid (StudentID, Semester, dateofPayment, AmountPaid)
Develop and deploy a web-based "Student Examination System" using JSP, having a database backend and a web server (you may select DBMS and web server, as per your choice). Your system should use JDBC for input of information to both tables. The system should also display the StudentID, Name, dateofPayment and Amount paid for all the students.
Submit the JSP program, screens and database of the system. You must demonstrate this system at the time of viva voce.
Make and state suitable assumptions, if any.
See Answer →Explain with the help of an example/diagram or write code for the following using JSP:
(i) Page and include directives of JSP
(ii) Write a JSP scriptlet to display a list of the first 8 double-digit positive even numbers.
(iii) <jsp:useBean> and <jsp:plugin> action elements of JSP
(iv) out and exception implicit objects in JSP
(v) Steps of JSP page processing
See Answer →Explain the following with the help of a diagram/example, if needed:
(i) Features of dynamic web pages
(ii) MVC Architecture
(iii) Tools for client-side scripting
(iv) HTTP methods
(v) Web Containers
See Answer →Explain the WAP protocol stack. Also, explain the following WML elements with the help of an example of each:
WML tables
WML Images
WML<anchor>element
Question2: (Covers Block 2)
See Answer →Write JavaScript code that displays the text "The Power of JavaScript is Dynamism". When you bring the mouse pointer over this text on the screen, it changes to "This is a Demonstration of Dynamism". You may use event handling to perform the action as stated above. Make suitable assumptions, if any. Submit the code. You should demonstrate this code at the time of the viva.
See Answer →A University maintains the list of Books in its library using XML. Every Book is allotted a unique book code, which should be used as an attribute in the XML document. In addition, the following information is stored about the Books: Title of the book, Author(s) (minimum 1 and maximum 3), year of publication, and publisher. Create an XML document containing information about five Books. Also, create the DTD to verify the XML document created by you.
BOOKS. Also, create the το ty the AML document created by you.
See Answer →At the time of the viva, you should demonstrate how changes in CSS can change the display.
You must submit the HTML and CSS code and the screenshots of the pages in a browser window.
See Answer →
The font of the ordered list should be "Arial" and the font size should be 12 points. The background colour of the list should be light blue.
See Answer →
The table heading should be in a different shade. The data rows of the table should have alternate light yellow and light green colour shades. The background of the table should be light blue.
See Answer →
The headings of the table must be in 14-point Bold, and all other content should be in 12-point Times Roman font.
See Answer →Write JavaScript code to validate if any of the field of the form is not filled.
See Answer →Create an external CSS file for this form. This CSS file should select the font size of 16-point italics for all the labels; font colour should be Blue for the headings and dark green for the normal text. The background colour of the form should be light yellow.
See Answer →
Explain the features of the following technologies: Content Networks, Social Media and Web Services. How are these technologies useful to you?
Server-side Technologies (JSP/PHP Concepts)
a) Explain how JSP or Servlet technology processes data submitted through an HTML form. (2 Marks)
b) Describe the role of databases in dynamic web applications and explain how user authentication can be implemented.
See Answer →XML and CSS Concepts
a) Create a simple XML document to store structured data and explain its components.
b) Explain how Cascading Style Sheets (CSS) can be used to enhance the presentation of HTML pages.
See Answer →JavaScript Events and Validation
a) Write a JavaScript program to change the color of text dynamically based on user interaction.
b) Design a JavaScript-based form validation script that checks for empty input fields and alerts the user.
See Answer →
Write a JavaScript program to evaluate basic arithmetic expressions and display the results.
See Answer →
Write a JavaScript program that prompts the user for their name and displays a welcome message.
See Answer →
Explain the purpose of hidden fields in forms and demonstrate their use with an example scenario.
See Answer →
Design a simple HTML form to accept user details such as name and enrolment number.
See Answer →