/[projects]/android/TrainInfoService/WebContent/version.jsp
ViewVC logotype

Diff of /android/TrainInfoService/WebContent/version.jsp

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

revision 1404 by torben, Sat Apr 30 05:43:04 2011 UTC revision 1405 by torben, Mon May 2 08:08:56 2011 UTC
# Line 27  String line; Line 27  String line;
27  while ( (line=in.readLine()) != null) {  while ( (line=in.readLine()) != null) {
28          if (line.indexOf("traininfo/version") == -1)          if (line.indexOf("traininfo/version") == -1)
29                  continue;                  continue;
30          String uri = line.split(" ")[7];          String version = "";
31          String tmp = uri.split("=")[1];          String parts[] = line.split(" ");
32          String version = tmp.split("&") [0];  
33            if (parts.length >= 8) {
34                    String uri = parts[7];
35                    if (uri.indexOf("=") != -1) {
36                            String tmp = uri.split("=")[1];
37                            if (tmp.indexOf("&") != -1) {
38                                    version = tmp.split("&") [0];
39                            }
40                    }
41            }
42                    
43          Integer count = versions.get(version);          Integer count = versions.get(version);
44          if (count == null)          if (count == null)

Legend:
Removed from v.1404  
changed lines
  Added in v.1405

  ViewVC Help
Powered by ViewVC 1.1.20