KhubaibQaiser 0 Newbie Poster

I want to know how can i use a servlet to generate a table (time table for example) dynamically in a jsp page? The result should come between header and footer inside a div (see the picture)
http://img191.imageshack.us/img191/8942/nbo6.png

<html>
<head>
<title>Time Tables</title>
<link href="default.css" rel="stylesheet" type="text/css"/>
</head>
<body>
    <div id="header">
        <ul>
            <li>
                <a href="#home">
                    <div id="logo">
                    </div>
                </a> 
            </li>
            <li>
                <div id="user">
                    <h4>Welcome, <font color="red">admin</font></h4>
                    <ul id="menu">
                        <li><a href="#notification"> Notifications </a> 
                            <ul id="submenu">
                                <li>
                                    <a href="#">Inbox</a>
                                </li>
                            </ul>
                        </li>|
                        <li><a href="#profile"> My Profile </a> </li>|
                        <li><a href="#settings"> Settings </a> </li>|
                        <li><a href="logon.jsp"> Log out </a> </li>
                    </ul>
                </div>
            </li>
        </ul>
    </div>
    <div id="timetable">
        <br><br>
        <h2>Time Tables</h2>
        <br>
        <table cellpadding="5px" border="solid">
  • <------------------------------------------>
  • I want my servlet to get data from a table from my
  • database and display it in this table. I have done coding in the servlet
  • to get the data from the database.
  •     <------------------------------------------>
    
        </table>
        <br>
        <a href="notice info.jsp"><input type="submit" value="Back" class="signupbuttons"/></a>
    </div>
    <div id="footer">
        <ul>
            <li><a href="admin home.jsp">Home</a></li>|
            <li><a href="#about">About</a></li>|
            <li><a href="#contact">Contact</a></li>|
            <li><a href="#facebook">Facebook</a></li> 
        </ul>
    </div>
    

    </body>
    </html>