Firebird lekérdezés kiiratása
Beküldte pzoli - 2011, május 16 - 1:47du
<?xml version="1.0" encoding="utf-8" ?> <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <sql:query var="rs" dataSource="jdbc/lxline">SELECT ARU_ID, ARU_TNEV, ARU_ALAPME FROM T_ARU WHERE ARU_TNEV LIKE 'K%'</sql:query> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Firebird teszt lap</title> </head> <body> <h2>Results</h2> <table> <thead> <tr> <th>ID</th> <th>Name</th> <th>AlapMe</th> </tr> </thead> <c:forEach var="row" items="${rs.rows}"> <tr> <td>${row.aru_id}</td> <td>${row.aru_tnev}</td> <td>${row.aru_alapme}</td> </tr> </c:forEach> </table> </body> </html>
- A hozzászóláshoz be kell jelentkezni