Revision 3563
Added by ben leinfelder about 17 years ago
lib/style/skins/first/assessmentQuery.jsp | ||
---|---|---|
27 | 27 |
//AssessmentQuery.testEcogrid("edml.4.5"); |
28 | 28 |
ResultSet rs = AssessmentQuery.selectResponseData(assessmentDocIds); |
29 | 29 |
|
30 |
if (rs == null) { |
|
31 |
return; |
|
32 |
} |
|
33 |
|
|
30 | 34 |
//get the results as csv file |
31 | 35 |
if (qformat != null && qformat.equalsIgnoreCase("csv")) { |
32 | 36 |
response.setContentType("text/csv"); |
... | ... | |
65 | 69 |
%> |
66 | 70 |
<tr> |
67 | 71 |
<% for (int i=1; i<=numColumns; i++) { %> |
68 |
<td><%=rs.getInt(i) %></td>
|
|
72 |
<td><%=rs.getString(i) %></td>
|
|
69 | 73 |
<% } %> |
70 | 74 |
</tr> |
71 | 75 |
<% |
Also available in: Unified diff
return immediately if there is no resultset to display
use getString() to display resultset for each column