<html>
<head>
<meta name="GENERATOR" content="Namo WebEditor">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="css/main_style.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

</head>
<body>
<center>

<tr> <th style='width: 3%;'> S.NO </th>

       <th style='width: 6%;'> Company ID </th>


   <th style='width: 10%;' > Company Name </th>
   <th style='width: 6%;' > More Company Details </th>
   <th style='width: 6%;'> User Details </th>
   <th style='width: 6%;'> Submission Summary </th>

</tr>

<%
ArrayList<BasicInfoJB> list=(ArrayList<BasicInfoJB>)session.getAttribute("companyBasicInfo");
%>

<%

    int i;
  for(i=0;i<list.size();i++){       


     BasicInfoJB bJB=(BasicInfoJB)list.get(i);    
out.println("<tr>");

    out.println("<td align='center'>"  );
    out.print(i+1);
    out.println("</td> ");

    out.println("<td>");
    out.print(bJB.getCOMPANY_ID());
    out.println("</td>");

    out.println("<td>");
    out.print(bJB.getCOMPANY_NAME());
    out.println("</td>");

    out.println("<td align='center'>");
    out.print("<a href='cmpnymrinfo?cid="+bJB.getCOMPANY_ID()+"'>ClickHere</a>");
    out.println("</td>");

    out.println("<td align='center'>");
    out.print("<a href='userdetails?cid="+bJB.getCOMPANY_ID()+"'>ClickHere</a>");
    out.println("</td>");

    out.println("<td align='center'>");
    out.print("<a href='submissumary?cid="+bJB.getCOMPANY_ID()+"'>ClickHere</a>");
    out.println("</td>");

out.println("</tr>");
    }

   %> 

</table>

<%out.println("<h2 style=\"color:red;font-family:verdana\"> Number of companies: "+i+"</h2>"); %>

</body>
</html>

I would recommend first learning to use servlets.
in the end, you won't be "turning your jsp in a pdf", you'll just write the information that is displayed in your jsp to a pdf file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.