Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <c:choose>
- <c:when test="${sessionScope['usuario'] != null }">
- <jsp:include page="/jsp/cabecalho_logado.jsp" />
- </c:when>
- <c:otherwise>
- <jsp:include page="/jsp/cabecalho_deslogado.jsp" />
- </c:otherwise>
- </c:choose>
- <sql:setDataSource var="connection"
- driver="org.apache.derby.jdbc.ClientDriver"
- url="jdbc:derby://localhost:1527/WebContent/banco/movies_jstl;user=utfpr;password=utfpr"
- user="utfpr" password="utfpr" scope="session" />
- <sql:query var="seleciona_filmes" dataSource="${connection }">
- select * from filme
- </sql:query>
- UTFPR MOVIES
- <table border="1">
- <tr>
- <th colspan="6">Lista de Filmes</th>
- </tr>
- <tr>
- <th>Título</th>
- <th>Gênero</th>
- <th>Ano</th>
- <th>Audio</th>
- <th>Legenda</th>
- </tr>
- <c:forEach var="lista" items="dao.selectAll">
- <tr>
- <td><c:out value="${lista.titulo}"/></td>
- <td><c:out value="${lista.genero}" /></td>
- <td><c:out value="${lista.ano}" /></td>
- <td><c:out value="${lista.audio}" /></td>
- <td><c:out value="${lista.legenda}" /></td>
- <td><a href="/movies_jstl/servlets/LoginAction?id_filme=<c:out value="${lista.idfilme}"/>">Assistir</a></td>
- </tr>
- </c:forEach>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement