/[projects]/android/TrainInfoService/src/dk/thoerup/traininfoservice/DumpResultSet.java
ViewVC logotype

Diff of /android/TrainInfoService/src/dk/thoerup/traininfoservice/DumpResultSet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 493 by torben, Sun Nov 1 16:35:48 2009 UTC revision 494 by torben, Sun Nov 1 17:15:13 2009 UTC
# Line 49  public class DumpResultSet extends HttpS Line 49  public class DumpResultSet extends HttpS
49                                                                    
50                                  sb.append("<tr>");                                  sb.append("<tr>");
51                                  for (int i=1; i<=columns; i++) {                                  for (int i=1; i<=columns; i++) {
52                                          sb.append("<td>").append(rs.getString(i)).append("</td>");                                          String value = rs.getString(i);
53                                            if (value != null) {
54                                                    value = value.replace("\n", "<br>");
55                                            }
56                                            sb.append("<td>").append( value ).append("</td>");
57                                  }                                  }
58                                  sb.append("</tr>\n");                                  sb.append("</tr>\n");
59                          }                          }

Legend:
Removed from v.493  
changed lines
  Added in v.494

  ViewVC Help
Powered by ViewVC 1.1.20