title: Error displaying a linked image on a JSP page
body: <p>I have a java web app running as a standalone using embedded jetty.  It works exactly as expected when run on a Mac OS X with Java 7.  However, when run using the same launch command on Windows 7 with Java 7, one of the JSP pages has a problem.  Here is the relevant part of the JSP page: </p>
  
  <pre><code>&lt;nested:notEmpty property="filesList"&gt;
      &lt;nested:iterate property="filesList" indexId="i"&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;nested:write property="name"/&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;nested:write property="description"/&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;a href="javascript:viewHydrationFile('hydrationOperations(&lt;%=operationName%&gt;).filesList[&lt;%=i%&gt;]','show-hydration-file-content_&lt;%=ind%&gt;_&lt;%=i%&gt;','to-reload');" id="show-hydration-file-content_&lt;%=ind%&gt;_&lt;%=i%&gt;"&gt;Show&lt;/a&gt;
                  &lt;nested:link action="/my-files/downloadHydrationFile.do" property="linkParameters"&gt;Export&lt;/nested:link&gt;
                  &lt;nested:hidden property="viewContent" /&gt;
                  &lt;nested:equal property="viewContent" value="true"&gt;    
                      &lt;nested:equal property="type" value="poredist"&gt;
                          &lt;nested:define id="poredistName" property="poredistName" /&gt;
                          &lt;div id="hydration-file-content_&lt;%=ind%&gt;_&lt;%=i%&gt;" class="to-reload file-poredist"&gt;&lt;img src="/vcctl/image/&lt;%=poredistName%&gt;" /&gt;&lt;/div&gt;
                      &lt;/nested:equal&gt;
                     &lt;nested:equal property="type" value="image"&gt;
                          &lt;nested:define id="sliceName" property="sliceName" /&gt;
                          &lt;div id="hydration-file-content_&lt;%=ind%&gt;_&lt;%=i%&gt;" class="to-reload file-image"&gt;&lt;nested:link action="/my-files/viewImage.do" target="_blank" property="linkParameters"&gt;&lt;img src="/vcctl/image/&lt;%=sliceName%&gt;" /&gt;&lt;/nested:link&gt;&lt;/div&gt;
                      &lt;/nested:equal&gt;
                  &lt;/nested:equal&gt;
                  &lt;nested:equal property="viewContent" value="false"&gt;
                      &lt;nested:equal property="type" value="poredist"&gt;
                         &lt;div id="hydration-file-content_&lt;%=ind%&gt;_&lt;%=i%&gt;" class="to-reload file-poredist"&gt;&lt;/div&gt;
                     &lt;/nested:equal&gt;
                     &lt;nested:equal property="type" value="image"&gt;
                         &lt;div id="hydration-file-content_&lt;%=ind%&gt;_&lt;%=i%&gt;" class="to-reload file-image"&gt;&lt;/div&gt;
                     &lt;/nested:equal&gt;
                 &lt;/nested:equal&gt;
             &lt;/td&gt;
         &lt;/tr&gt;
     &lt;/nested:iterate&gt;
  &lt;/nested:notEmpty&gt;
  </code></pre>
  
  <p>I realize there is a javascript function call here, but it is pretty generic, making a call to a java Action that fetches the png image.  I will be happy to post both the javascript function and the java Action if that would be helpful.</p>
  
  <p>The section for "image" files works fine even on Windows.  It will display the image, and I can hide it and then redisplay it as expected.  The problem is with the "poredist" section, which will display the correct png image one time, with the following message on the java console:</p>
  
  <pre><code>INFO: Tiles process complete; forward to /my-files/my-hydration-files.jsp
  Apr 11, 2014 10:30:03 AM org.apache.struts.tiles.commands.TilesPreProcessor exec
  ute
  </code></pre>
  
  <p>However, if I then hide this png file and attempt to display it again, the image is broken and the following message is displayed on the console:</p>
  
  <pre><code>INFO: Tiles process complete; forward to /my-files/my-hydration-files.jsp
  C:\Users\bullard\AppData\Local\Temp\jetty-0.0.0.0-8080-vcctl.war-_vcctl-any-4877
  14299336733721.dir\webapp\image\HydrationOf-TestPaste.img.25.000.poredist.png (T
  he requested operation cannot be performed on a file with a user-mapped section
  open)
  </code></pre>
  
  <p>I don't understand this last error and cannot find much about it with a web search.  Any help will be greatly appreciated.</p>