Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <%@ page import="java.util.*, com.luv2code.web.jdbc.*" %>
  2. <!DOCTYPE html>
  3. <html>
  4.  
  5. <head>
  6. <title>Student Tracker App</title>
  7.  
  8. <link type="text/css" rel="stylesheet" href="css/style.css">
  9. </head>
  10.  
  11. <%
  12. // get the students from the request object (sent by servlet)
  13. List<Student> theStudents =
  14. (List<Student>) request.getAttribute("STUDENT_LIST");
  15. %>
  16.  
  17. <body>
  18.  
  19. <div id="wrapper">
  20. <div id="header">
  21. <h2>FooBar University</h2>
  22. </div>
  23. </div>
  24.  
  25. <div id="container">
  26.  
  27. <div id="content">
  28.  
  29. <table>
  30.  
  31. <tr>
  32. <th>First Name</th>
  33. <th>Last Name</th>
  34. <th>Email</th>
  35. </tr>
  36.  
  37. <% for (Student tempStudent : theStudents) { %>
  38.  
  39. <tr>
  40. <td> <%= tempStudent.getFirstName() %> </td>
  41. <td> <%= tempStudent.getLastName() %> </td>
  42. <td> <%= tempStudent.getEmail() %> </td>
  43. </tr>
  44.  
  45. <% } %>
  46.  
  47. </table>
  48.  
  49. </div>
  50.  
  51. </div>
  52. </body>
  53.  
  54.  
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement