1
Oracle 데이터베이스에서 레코드를 가져 오는 JSP가 있습니다. Oracle에서 SQL 쿼리를 수행 할 때 예상되는 형식 (예 : 06-JAN-14)으로 날짜가 표시됩니다.날짜 대신 날짜 시간을 표시하는 JSP
그러나 내 JSP에서는 JSTL을 사용하여 데이터베이스를 쿼리하고 레코드를 JQuery DataTable에 저장합니다. 유감스럽게도 프로세스의 어딘가에 시간 기록이 날짜에 추가됩니다 (예 : 2014-01-07 00 : 00 : 00.0).
이것은 JSP 내부의 내 SQL 쿼리입니다.
<sql:query var="retrieveMovers" dataSource="jdbc/blahApp">
SELECT * FROM blah
</sql:query>
결과를 출력 할 테이블입니다.
<table id="movers" cellpadding="0" cellspacing="0" border="0" class="display" width="100%">
<thead>
<tr>
<th>Security</th>
<th>Comment</th>
<th>Bid Price</th>
<th>Bid Percent Change</th>
<th>Security Description</th>
<th>Date</th>
</tr>
</thead>
<tbody>
<c:forEach var="row" items="${retrieveMovers.rows}">
<tr>
<td>${row.security}</td>
<td>${row.comment}</td>
<td>${row.bid_price}</td>
<td>${row.bid_percent_change}</td>
<td>${row.security_description}</td>
<td>${row.date}</td>
</tr>
</c:forEach>
</tbody>
</table>
아무에게도 내 날짜 행에 타임 스탬프가 추가되지 않도록 할 수있는 방법을 제안 할 수 있습니까?
감사합니다.
보십시오. 나는 다른 예제에서 사용되는 것을 보았지만 출력이 내
은과 요소에서 큰 일 것을 나는 내장이
출처
2014-01-08 16:33:59
관련 문제