Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <%@include file="header.jsp" %>
  2. <div class="container">
  3. <h3>Daftar Mahasiswa</h3>
  4. <a href="tambah-mhs.jsp"><button class="btn-success">Tambah Mahasiswa</button></a>
  5.  
  6. <table class="table table-bordered">
  7. <thead>
  8. <tr>
  9. <th>NIM</th>
  10. <th>Nama</th>
  11. <th>Jurusan</th>
  12. <th>Email</th>
  13. <th>Alamat</th>
  14. <th>Aksi</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <tr>
  19. <%-- start web service invocation --%><hr/>
  20. <%
  21. try
  22. {
  23. client.siakad.Mahasiswa_Service service = new client.siakad.Mahasiswa_Service();
  24. client.siakad.Mahasiswa port = service.getMahasiswaPort();
  25. // TODO process result here
  26. java.util.List<java.lang.Object> resultMhs = port.tampilMahasiswa();
  27. for (int i = 0; i < resultMhs.size(); i++)
  28. {
  29. out.println(resultMhs.get(i));
  30. }
  31. }
  32. catch (Exception ex)
  33. {
  34. // TODO handle custom exceptions here
  35. }
  36. %>
  37. <%-- end web service invocation --%><hr/>
  38. </tr>
  39. </tbody>
  40. </table>
  41.  
  42. </div>
  43. <%@include file="footer.jsp" %>