Slip No 13 Q B

Write a JSP program to display the details of College (CollegeID, Coll_Name, Address) in tabular form on browser.

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<html>
<head>
    <title>College Details</title>
</head>
<body>

<h2 align="center">College Details</h2>

<table border="1" align="center" cellpadding="10">
    <tr>
        <th>College ID</th>
        <th>College Name</th>
        <th>Address</th>
    </tr>

    <tr>
        <td>101</td>
        <td>ABC College</td>
        <td>Pune</td>
    </tr>

    <tr>
        <td>102</td>
        <td>XYZ Institute</td>
        <td>Mumbai</td>
    </tr>

    <tr>
        <td>103</td>
        <td>National College</td>
        <td>Nashik</td>
    </tr>
</table>

</body>
</html>
Spread the love

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top