0

<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>

Edited by gopal_3

2
Contributors
1
Reply
8
Views
2 Years
Discussion Span
Last Post by stultuske
0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.