Hello everybody!
I have a table with sport events. Table is populated from database.
Uploaded with
ImageShack.us
When I click on detalji (details) it should open a new page with details about the match. Result prediction, users comments and so on.
I send the ID of the match through GET method
.
The problem is that I receive all matches from database on the new page, but I only want the match that has the ID I sent through GET method.
I hope You understand what I want.
With the next code I receive empty table.
Here is my code:
Controller DohUtakmica.java
Method for fetching ID from DAOimpl
dohUtakmica.jsp
<table cellpadding="5" cellspacing="0" border="3" class="display" id="coolTablica" width="100%" style="border-color: blue;">
<thead>
<tr>
<th> <fmt:message key="odabirSport.domacin"/> </th>
<th> <fmt:message key="odabirSport.gost"/> </th>
<th> <fmt:message key="odabirSport.rez"/> </th>
</tr>
</thead>
<tbody>
<%
String utakmica_id = request.getParameter("id");
%>
<c:if test = "${param.name != null}">
<c:if test="${listaUtakmica.contains(utakmica.utakmica_id) == true}">
<tr>
<td><c:out value="${utakmica.domacin.nazivTeama}"/></td>
<td><c:out value="${utakmica.gost.nazivTeama}"/></td>
<td><c:out value="${utakmica.rezultat}"/></td>
</tr>
</tbody>
</table>
I hope that someone could give me an advice.
Thanks in advance!