Changeset 29537 for other-projects

Show
Ignore:
Timestamp:
08.12.2014 00:12:15 (5 years ago)
Author:
davidb
Message:

Minor adjustments after further testing

Files:
1 modified

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          }