Changeset 29537 for other-projects


Ignore:
Timestamp:
2014-12-08T00:12:15+13:00 (9 years ago)
Author:
davidb
Message:

Minor adjustments after further testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/similarity-2d/index.jsp

    r29533 r29537  
    7777      String action = request.getParameter("action");
    7878
    79       if (action.equals("ratios")) {
     79      if ((action != null) && action.equals("ratios")) {
    8080
    8181          Map<String, Integer> ratioFreq = new HashMap<String, Integer>();
     
    134134 
    135135          for (final File fileEntry : imageFileList) {
    136             File flagImageUrl = new File(imageUrlBase,fileEntry.getName());
     136            String flagImageUrl = imageUrlBase + "/" + fileEntry.getName();
    137137
    138             out.println("<img src=\"" + flagImageUrl.getPath() + "\">");
     138            out.println("<img src=\"" + flagImageUrl + "\">");
    139139
    140140          }
Note: See TracChangeset for help on using the changeset viewer.