File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tables in jsp page

 
Dinara Berdysheva
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys! I am trying to display table from database using jsp page. Everything works correctly, apart from the layout. The problem is : the more rows I add to my table, the more space increases between table and navigation bar. Please help!
This is part of my jsp, where i display table:

 
Sagar Vyas
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dinara Berdysheva wrote:Hello guys! I am trying to display table from database using jsp page. Everything works correctly, apart from the layout. The problem is : the more rows I add to my table, the more space increases between table and navigation bar. Please help!
This is part of my jsp, where i display table:



Hi Dinara,

This is one of strong reason to not to use java in JSP.

Readability and Debug capacity is get reduce.

Please try to use JSTL.

Thanks,
Sagar Vyas
 
Deepak Ram
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a
statement at the end of the <tr> statement. Please try after removing the
tag.

Line 62: "</tr>
",

Hope this works.
 
Deepak Ram
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the last post. THe tags got removed. What I meant was please try removing the break statements in the line 62. Please try the same to see if it works.

Apologize for the formatting in the last post.
 
ginalyn celino
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<html>
<head>
<title>display data from the table using jsp</title>
</head>
<body>
<TABLE style="background-color: #ffffcc;">
<TR>
<TD align="center"><h2>To display all the data from the
table click here...</h2></TD>
</TR>
<TR>
<TD align="center"><A HREF="ConnectJspToMysql.jsp">
<font size="4" color="blue">show data from table</font>
</A></TD>
</TR>
</TABLE>
</body>
</html>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic