@@ -0,0 +1,2331 @@
+package org.modmine.web;%0A%0A/*%0A * Copyright (C) 2002-2010 FlyMine%0A *%0A * This code may be freely distributed and modified under the%0A * terms of the GNU Lesser General Public Licence.  This should%0A * be distributed with the code.  See the LICENSE file for more%0A * information or http://www.gnu.org/copyleft/lesser.html.%0A *%0A */%0A%0Aimport java.util.List;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport org.apache.struts.action.ActionForm;%0Aimport org.apache.struts.action.ActionForward;%0Aimport org.apache.struts.action.ActionMapping;%0Aimport org.apache.struts.tiles.ComponentContext;%0Aimport org.apache.struts.tiles.actions.TilesAction;%0Aimport org.intermine.api.InterMineAPI;%0Aimport org.intermine.model.InterMineObject;%0Aimport org.intermine.model.bio.ResultFile;%0Aimport org.intermine.model.bio.Submission;%0Aimport org.intermine.objectstore.ObjectStore;%0Aimport org.intermine.web.logic.session.SessionMethods;%0Aimport org.modmine.web.MetadataCache.GBrowseTrack;%0A%0Aimport com.sun.servicetag.SystemEnvironment;%0A%0A/**%0A * Set up for the tracksDisplayer.jsp%0A * @author Daniela Butano%0A */%0Apublic class TrackDisplayerController extends TilesAction %0A%7B%0A    public ActionForward execute(ComponentContext context,%0A                                 ActionMapping mapping,%0A                                 ActionForm form,%0A                                 HttpServletRequest request,%0A                                 HttpServletResponse response) %7B%0A%0A        final InterMineAPI im = SessionMethods.getInterMineAPI(request.getSession());%0A        ObjectStore os = im.getObjectStore();%0A        InterMineObject o = (InterMineObject) request.getAttribute(%22object%22);%0A        %0A        Integer dccId = ((Submission) o).getdCCid();%0A       %0A        List%3CGBrowseTrack%3E subTracks = MetadataCache.getTracksByDccId(dccId);%0A        request.setAttribute(%22subTracks%22, subTracks);%0A        %0A        List%3CResultFile%3E files = MetadataCache.getFilesByDccId(os, dccId);%0A        for (ResultFile file : files) %7B%09%0A        %09String fileName = file.getName();%0A        %09int index = fileName.lastIndexOf(System.getProperty(%22file.separator%22));%0A        %09file.setName(fileName.substring(index + 1));%0A        %7D%0A        request.setAttribute(%22files%22, files);%0A        request.setAttribute(%22filesNR%22, files.size());%0A%0A        return null;%0A    %7D%0A%0A%7D%0A

Modified the file name