Write a program in JSP which displays the assignment marks of all the courses of MCA 5th semester of IGNOU of all the students in a batch. Make necessary assumptions, if any. Also display current date on this page. Do proper formatting and colouring of the page.
To create a program in JSP (JavaServer Pages) to display the assignment marks of all the courses for MCA 5th semester students of IGNOU in a batch, we need to follow several steps. Given that the question is based on MCS 51 and MCS 53, we'll assume that the assignment marks are stored in a database. Here's a step-by-step guide:
1. Database Setup: Assuming you have a database with tables containing student information and assignment marks, ensure it's properly configured and accessible from your JSP application.
2. JSP File Creation: Create a JSP file named `displayMarks.jsp`. This file will contain the HTML markup along with Java code to retrieve and display the assignment marks.
3. Java Code: Write Java code within the JSP file to retrieve assignment marks from the database. Use JDBC (Java Database Connectivity) to connect to the database and execute SQL queries.
4. Display Current Date: Use Java's `java.util.Date` class to get the current date and display it on the page.
5. Formatting and Coloring: Apply CSS styling to format and color the page to make it visually appealing.
Here's a sample implementation:
```jsp
<%@ page import="java.sql.*, java.util.*" %>
<!DOCTYPE html>
<html>
<head>
<title>MCA 5th Semester Assignment Marks</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 20px;
}
table {
width: 80%;
border-collapse: collapse;
margin: 20px 0;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
_________ _______ ______ __________ __________ _______ ______ __________ _________ ___ ______ ______.
_________ _______ ________ _______ _________ _________ ____ __________ _____.
_____ _________ ______ __________ __________.
___ ____ __________ __________ _______.
________ ____ ____ _________ ____ _________ ___ _________ __________ ______ _____ _______.
____ _______ __________ _____ ___ _____ _________ ______ _______ _________ _________ _________.
______ ________ ____ ____ _______ _______ ________ _______ __________ ________.
_____ ___ ______ ___ ________ ________ ___ ___.
_____ _______ _____ _____ ________ _________.
________ __________ _____ _______ ________.
______ ___ __________ ______ ______ _______ __________ _____.
______ ___ ___ ___ __________ _____ _______ ____ ___ ________ ___.
_____ __________ _________ ______ _________ __________ _________ ______ ______ _____ _______ _________.
____ ______ ______ _________ _____ _________ _______ ___.
___ ____ _________ _____ _________ ______ ______ ___.
____ ____ _____ ______ _________ __________ __________ ___ _________ __________ ______.
_____ ______ __________ _______ _________ ____ _______ _____ ___ ___ _____ _____.
__________ _________ _________ _______ ____ _______.
________ ________ ________ ___ ________ _____ _________.
_______ _______ ____ _________ _______ _________ __________ _________ ____ ____ ___.
_____ ________ ____ ____ ______ _________ ________.
______ ___ _______ __________ _______ _______ _____ ____ __________ ____ _________ ______.
_______ __________ _________ ______ ___ _____ __________ ________ _____ _____ _______ _____.
_____ ________ ___ ___ _______ _______ _________ __________.
__________ __________ _____ ___ ________ _________ ______ ____ ____ _______ _____ ______.
_________ _________ ______ ____ _____ ________ ______.
_______ _______ ______ ____ ____.
_________ __________ __________ ______ ________ _______ ________ ________ _____ __________ _________.
________ ______ _____ ____ _______ ____ _______ ________ __________ _________ _____ ____.
______ _____ ____ ____ _______ _________ _____ _________ __________ ___ __________ _________.
_________ ______ _____ __________ ______.
______ _________ _____ _______ ______ ____ ______ _____ ___ _______.
_____ _______ _______ _________ ___ _________ _____ _____ ______ _______.
_____ _________ ____ ___ _________ ___ _____ _________ _____ _______ _____ ________.
___ ___ _______ ____ ___ __________ ________ ______ ____ ________ _____ __________.
_________ ____ _________ _________ _____ ________ ________ _________ ___.
_____ _________ ________ ________ ____ __________ _________ _________ _______ ______.
___ ______ _______ ______ ____ _____ _______ _________ ____ _____ ________ ___.
________ _________ ___ ______ _______ ____ ___ _________.
______ _____ _______ ____ ______ _________ ___ ___ ________ ___ __________.
________ ______ _________ ____ ________ ________.
__________ ______ _________ _________ __________ __________ __________ _______ _____.
__________ ________ _________ _________ __________.
____ _______ _____ __________ ___ ______.
______ _____ _________ ___ ___ ________ ________ ________ ______.
___ _____ _____ _______ ___ ______ ______ ____.
__________ _______ ____ _______ ______ _________ ________ ___ ____ ___ ____.
_______ _____ ____ _________ _______ __________ ______ _____ ______ ____ ____.
___ ___ _____ __________ ____ ___ ______ __________ __________ _________ ______.
______ _________ _________ ____ __________ _______ __________ ___ ________ _______ __________ _______.
__________ ________ ________ _______ ___ ____ _______.
__________ ___ __________ _____ ___ ____ ________ _____ ______.
_____ ___ _______ ____ ____ ______ ___ ________.
______ ____ _____ __________ __________ __________ ____ ________ _____.
______ __________ ____ ____ ________.
___ _____ ______ ______ ____ _______ __________ ________ __________ ______.
__________ ___ _____ ________ ___ _____ __________ _____ __________ _______.
__________ _______ ___ ________ _________ _____ _______ ________.
___ __________ _______ __________ ______ _____ ________ ____ ______.
________ __________ ________ _______ ______ ___ ______ ____.
_____ _______ ________ _________ __________.
______ ___ _____ ________ _____.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required