File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Tables in jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Tables in jsp page" Watch "Tables in jsp page" New topic
Author

Tables in jsp page

Dinara Berdysheva
Greenhorn

Joined: Mar 03, 2013
Posts: 1
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

Joined: Feb 17, 2013
Posts: 10
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


Sagar Vyas
"More Sharing and More Learning"
Deepak Ram
Greenhorn

Joined: Aug 09, 2007
Posts: 12
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

Joined: Aug 09, 2007
Posts: 12
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

Joined: Mar 11, 2013
Posts: 9
<!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
 
subject: Tables in jsp page