• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tables in jsp page

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
reply
    Bookmark Topic Watch Topic
  • New Topic