Hello Ranchers
I'm doing project in
jsp oracle.. in a search query it retieves datas from the database and display in the jsp page .. inside a <table>
there are 30 records in the database.. and all the records are displaying when i run the query..
It is a status report.
so when i want to print the jsp page.
the page layout is not good.. the last line in the first page and the first line in the second page is not properly comming.
is it possible to put a page break
like this
--------------------
<table>
<tr>
<td>Name</td>
<td>Age</td>
</tr>
<tr>
<%
int i=1;
while(rs.next())
{
String name = rs.getString(1);
String age = rs.getInt(2);
i++;
%>
<tr>
<td> <%= name%> </td>
<td> <%= age%> </td>
</tr>
<%
if(i==15)
{ i=0;
%>
<pagebreak> <%
}
----------------------------------------------------------
is something like this is possible
i've given <br><br> like this
but the 3rd page is not comming..
is there any possible way to print the datas in format!!
please help me!!
ranchers