<%--
Document : resultsQueryFile
Created on : Dec 12, 2014, 11:05:50 PM
Author : Serg Bash
--%>
<%@page language="java" import="java.util.*" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Results of search</title>
</head>
<body>
<table border='1'cellspacing='0' cellpadding='0'>
<tr>
<!-- Not used table headers you will can mark as "hidden=''"-->
<th width="10%">
Title:
</th>
<th width="10%">
Thumbnail:
</th>
<th width="10%">
URL:
</th>
<th width="10%">
Type:
</th>
<th width="10%">
Description:
</th>
<th width="10%">
Keywords:
</th>
<th width="10%">
Size:
</th>
<th width="10%">
Custom ID:
</th>
<th width="10%">
Hash:
</th>
<th width="10%">
Status:
</th>
</tr>
<%Iterator itr;%>
<% List data= (List)request.getAttribute("data");
for (itr=data.iterator(); itr.hasNext(); ) {
%>
<!-- Not used table data you will can mark as "hidden=''"-->
<tr>
<td width="10%">
<strong><%=itr.next()%></strong>
</td>
<td width="10%">
<% if(itr.next().toString().contains("null")) out.println("File loading...");
else out.println(itr.next()); %>
</td>
<td width="10%">
<%=itr.next()%>
</td>
<td width="10%">
<%=itr.next()%>
</td>
<td width="10%">
<%=itr.next()%>
</td>
<td width="10%">
<%=itr.next()%>
</td>
<td width="10%">
<%=itr.next()%>
</td>
<td width="10%">
<%=itr.next()%>
</td>
<td width="10%">
<%=itr.next()%>
</td>
<td width="10%">
<%=itr.next()%>
</td>
<tr>
<%}%>
</table>
</body>
</html>
I want print table with some data in one jsp without use others libs, but this print is not correctly works(data mixed in table), because execute one:if or else. Try solve by fynction,but it is no working good.
Aucun commentaire:
Enregistrer un commentaire