Results 1 to 3 of 3
  1. #1
    banie is offline Member
    Join Date
    Jan 2008
    Posts
    21
    Rep Power
    0

    Default Dynamic Table using JSP

    Hi,

    I want to ask idea how to create table using jsp. The table must be in form, any people that have auth can be access dan update the table. If subject using column, it will merge automatically.

    Any idea how? Just tell me how to do. Just wanna idea. Blur right now. Thanks to all that give idea.

  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    6

    Default

    First, make it work as a fixed table, get the POST logic working in your servlet. etc.

    Then you want to use EL to dynamically generate the table, once you have the first stuff working

  3. #3
    banie is offline Member
    Join Date
    Jan 2008
    Posts
    21
    Rep Power
    0

    Default

    This is my table:
    Java Code:
    <%@page language="java" import="java.sql.*;" %>
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Jadual time</title>
    </head>
    
    <body>
    <table width="862" height="348" border="1" cellpadding="2" cellspacing="2">
      <tr>
        <th width="184" scope="row">Days/Time</th>
        <td width="121"><div align="center">7:45 - 8:15</div></td>
        <td width="160"><div align="center">8:15 - 8:45</div></td>
        <td width="126"><div align="center">8:45 - 9:15</div></td>
        <td width="123"><div align="center">9:15 - 9:45</div></td>
        <td width="96">&nbsp;</td>
      </tr>
      <tr>
        <th scope="row">SUNDAY</th>
        <td><a href="edit2.jsp?day=Sunday&amp;time=745">Edit</a></td>
        <td><a href="edit2.jsp?day=Sunday&amp;time=815">Edit</a></td>
        <td><a href="edit2.jsp?day=Sunday&amp;time=845">Edit</a></td>
        <td><a href="edit2.jsp?day=Sunday&amp;time=915">Edit</a></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <th scope="row">MONDAY</th>
        <td><a href="edit2.jsp?day=monday&amp;time=745">Edit</a></td>
        <td><a href="edit2.jsp?day=monday&amp;time=815">Edit</a></td>
        <td><a href="edit2.jsp?day=monday&amp;time=845">Edit</a></td>
        <td><a href="edit2.jsp?day=monday&amp;time=915">Edit</a></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <th scope="row">TUESDAY</th>
        <td><a href="edit2.jsp?day=tuesday&amp;time=745">Edit</a></td>
        <td><a href="edit2.jsp?day=tuesday&amp;time=815">Edit</a></td>
        <td><a href="edit2.jsp?day=tuesday&amp;time=845">Edit</a></td>
        <td><a href="edit2.jsp?day=tuesday&amp;time=915">Edit</a></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <th scope="row">WEDNESDAY</th>
        <td><a href="edit2.jsp?day=wednesday&amp;time=745">Edit</a></td>
        <td><a href="edit2.jsp?day=wednesday&amp;time=815">Edit</a></td>
        <td><a href="edit2.jsp?day=wednesday&amp;time=845">Edit</a></td>
        <td><a href="edit2.jsp?day=wednesday&amp;time=915">Edit</a></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <th scope="row">THURSDAY</th>
        <td><a href="edit2.jsp?day=thursday&amp;time=745">Edit</a></td>
        <td><a href="edit2.jsp?day=thursday&amp;time=815">Edit</a></td>
        <td><a href="edit2.jsp?day=thursday&amp;time=845">Edit</a></td>
        <td><a href="edit2.jsp?day=thursday&amp;time=915">Edit</a></td>
        <td>&nbsp;</td>
      </tr>
    </table>
    <p><input type="submit" value="Update" />&nbsp;</p>
    </body>
    </html>
    From this table, i need to insert data in database. Is it i need to create 2 table for time and days? Or just need 1 table only. I confuse now.

Similar Threads

  1. Dynamic JTable
    By eftenpuften in forum AWT / Swing
    Replies: 0
    Last Post: 07-24-2008, 03:41 PM
  2. Dynamic DecimalFormatter
    By felixtfelix in forum New To Java
    Replies: 0
    Last Post: 03-17-2008, 04:16 PM
  3. Help for dynamic classes
    By Bender in forum Advanced Java
    Replies: 1
    Last Post: 12-19-2007, 08:46 PM
  4. how to generate dynamic pdf
    By valery in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 10:01 PM
  5. problems with Dynamic Xml
    By boy22 in forum XML
    Replies: 1
    Last Post: 07-24-2007, 12:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •