source: extensions/net.sf.basedb.genepattern/trunk/resources/visualizer.jsp @ 1132

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

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

This is a first attempt to run a visualization module. The main procedure is work and the really hard parts (starting the visualization applet with correct parameters and support files) have been done. But don't expect this to work outside of my development machine yet.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 2.0 KB
Line 
1<%-- $Id: visualizer.jsp 1132 2009-06-18 12:26:04Z 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 Jari, Nicklas
25--%>
26<%@ page
27  pageEncoding="UTF-8"
28  session="false"
29  import="java.util.Map"
30%>
31<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
32<%
33Map<String, String> appletParameters = (Map<String, String>)request.getAttribute("appletParameters");
34%>
35<base:page type="popup" title="">
36<base:head >
37
38</base:head>
39<base:body>
40  <h3><%=appletParameters.get("name")%></h3>
41  <div class="boxedbottom">
42  The visualizer will start in it's own window. It is safe to
43  close this window once the visualizer is up and running.
44 
45  <applet 
46    code="org.genepattern.visualizer.RunVisualizerApplet" 
47    archive="runVisualizer.jar,commons-httpclient.jar,commons-codec-1.3.jar" 
48    codebase="downloads" 
49    width="1" height="1" 
50    alt="Your browser can not run applets"
51    >
52      <%
53      for (Map.Entry<String, String> entry : appletParameters.entrySet())
54      {
55        %>
56        <param name="<%=entry.getKey()%>" value="<%=entry.getValue()%>">
57        <%
58      }
59      %>
60  </applet>
61  </div>
62
63    <table align="center">
64    <tr>
65      <td><base:button onclick="window.close();" title="Close" /></td>
66    </tr>
67    </table>
68
69</base:body>
70</base:page>
71<%
72
73%>
Note: See TracBrowser for help on using the repository browser.