Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=windows-1255"
  2. pageEncoding="windows-1255"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  4. <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
  9. <title>Insert title here</title>
  10. </head>
  11. <body>
  12. <sql:setDataSource var="toledo" driver="com.mysql.jdbc.Driver"
  13. url="jdbc:mysql://localhost/toledo"
  14. user="root" password="t7417883"/>
  15.  
  16.  
  17. <sql:query dataSource="${toledo}" var="players">
  18. <c:set var="choosen" value="select user_name from users where in users_to_groups group_name='${param.groupSelection}';"></c:set>
  19. </sql:query>
  20. <sql:query dataSource="${toledo}" var="player">
  21. select (firstName,avgSoccer,speed,physical,shooting,reflex,dive_takle,flexibility,skills,pass) from users where user_name='${players.choosen}';
  22. </sql:query>
  23. <table border="1" width="100%">
  24. <tr>
  25. <th>שם</th>
  26. <th>ממוצע יכולת</th>
  27. <th>מהירות</th>
  28. <th>פיזיות</th>
  29. <th>בעיטה</th>
  30. <th>רפלקס</th>
  31. <th>זינוק/גליץ'</th>
  32. <th>גמישות</th>
  33. <th>שליטה בכדור</th>
  34. <th>מסירה</th>
  35. <th>הצבעות</th>
  36. </tr>
  37. <c:forEach var="row" items="${result.rows}">
  38. <tr>
  39.  
  40. <td><c:out value="${row.firstName}"/></td>
  41. <td><c:out value="${row.avgSoccer}"/></td>
  42. <td><c:out value="${row.speed}"/></td>
  43. <td><c:out value="${row.physical}"/></td>
  44. <td><c:out value="${row.shooting}"/></td>
  45. <td><c:out value="${row.reflex}"/></td>
  46. <td><c:out value="${row.dive_takle}"/></td>
  47. <td><c:out value="${row.flexibility}"/></td>
  48. <td><c:out value="${row.skills}"/></td>
  49. <td><c:out value="${row.pass}"/></td>
  50. <td><c:out value="${row.vote_num}"/></td>
  51. </tr>
  52. </c:forEach>
  53. </table>
  54. </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement