Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page language="java" contentType="text/html; charset=windows-1255"
- pageEncoding="windows-1255"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
- <title>Insert title here</title>
- </head>
- <body>
- <sql:setDataSource var="toledo" driver="com.mysql.jdbc.Driver"
- url="jdbc:mysql://localhost/toledo"
- user="root" password="t7417883"/>
- <sql:query dataSource="${toledo}" var="players">
- <c:set var="choosen" value="select user_name from users where in users_to_groups group_name='${param.groupSelection}';"></c:set>
- </sql:query>
- <sql:query dataSource="${toledo}" var="player">
- select (firstName,avgSoccer,speed,physical,shooting,reflex,dive_takle,flexibility,skills,pass) from users where user_name='${players.choosen}';
- </sql:query>
- <table border="1" width="100%">
- <tr>
- <th>שם</th>
- <th>ממוצע יכולת</th>
- <th>מהירות</th>
- <th>פיזיות</th>
- <th>בעיטה</th>
- <th>רפלקס</th>
- <th>זינוק/גליץ'</th>
- <th>גמישות</th>
- <th>שליטה בכדור</th>
- <th>מסירה</th>
- <th>הצבעות</th>
- </tr>
- <c:forEach var="row" items="${result.rows}">
- <tr>
- <td><c:out value="${row.firstName}"/></td>
- <td><c:out value="${row.avgSoccer}"/></td>
- <td><c:out value="${row.speed}"/></td>
- <td><c:out value="${row.physical}"/></td>
- <td><c:out value="${row.shooting}"/></td>
- <td><c:out value="${row.reflex}"/></td>
- <td><c:out value="${row.dive_takle}"/></td>
- <td><c:out value="${row.flexibility}"/></td>
- <td><c:out value="${row.skills}"/></td>
- <td><c:out value="${row.pass}"/></td>
- <td><c:out value="${row.vote_num}"/></td>
- </tr>
- </c:forEach>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement