I have a JSP page in which I am displaying data in the form of HTML table.
<TABLE>
<TR>
<TH>ID</TH>
<TH>NAME</TH>
…
<TH>ADDRESS</TH>
</TR>
<TR>
<TD><%=rs.getString(“id”)%></TD>
<TD><%=rs.getString(“name”)%></TD>
…
<TD><%=rs.getString(“address”)%></TD>
</TR>
</TABLE>
The problem is there are large number of columns. To view all of them the user needs to scroll horizontally and then he/she looses view of the primary key column.
Say “Address” is the 15 column. To view it user scrolls horizontally but then he/she is not able to make out for which “id” this address is. I want that the “id” column always stays where it is while others move horizontally.
Plz help as to how this can be done.