source: extensions/net.sf.basedb.genepattern/trunk/resources/getFile.jsp @ 1134

Last change on this file since 1134 was 1134, checked in by Nicklas Nordborg, 14 years ago

References #234: Proof-of-concept: run a selected GenePattern? visualization module from BASE

The process is now a bit more generic. In theory it should be possible to run any visualizer module. Got rid of hard-coded urls to servers.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 1.4 KB
Line 
1<%-- $Id: getFile.jsp 1134 2009-06-22 12:00:26Z nicklas $
2  ------------------------------------------------------------------
3  Copyright (C) 2009 Nicklas Nordborg
4
5  This file is part of BASE - BioArray Software Environment.
6  Available at http://base.thep.lu.se/
7
8  BASE is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License
10  as published by the Free Software Foundation; either version 2
11  of the License, or (at your option) any later version.
12
13  BASE is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place - Suite 330,
21  Boston, MA  02111-1307, USA.
22  ------------------------------------------------------------------
23
24  @author Nicklas
25--%>
26<%@ page
27  pageEncoding="UTF-8"
28  session="false"
29  import="net.sf.basedb.core.Application"
30  import="net.sf.basedb.util.StaticCache"
31  import="net.sf.basedb.util.FileUtil"
32%>
33<%
34  String file = request.getParameter("file");
35  String task = request.getParameter("task");
36  StaticCache cache = Application.getStaticCache();
37  response.resetBuffer();
38  String key = cache.makeValidKey("gp-integration/" + task + "/" + file, "-");
39  FileUtil.copy(cache.read(key, 1000), response.getOutputStream());
40%>
Note: See TracBrowser for help on using the repository browser.