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

Last change on this file since 1134 was 1134, checked in by Nicklas Nordborg, 12 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: 2.1 KB
Line 
1<%-- $Id: visualizer_applet.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.clients.web.util.HTML"
30  import="java.util.Map"
31%>
32<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
33<%
34final Map<String, String> appletParameters = 
35  (Map<String, String>)request.getAttribute("appletParameters");
36String module = appletParameters.get("name");
37%>
38<base:page type="popup" title="<%=HTML.encodeTags(module)%>">
39<base:head></base:head>
40<base:body>
41  <h3 class="docked"><%=HTML.encodeTags(module)%></h3>
42  <div class="boxedbottom">
43  The visualizer will start in it's own window. It is safe to
44  close this window once the visualizer is up and running.
45  <p>
46  <applet 
47    code="org.genepattern.visualizer.RunVisualizerApplet" 
48    archive="runVisualizer.jar,commons-httpclient.jar,commons-codec-1.3.jar" 
49    codebase="visualizer" 
50    width="1" height="1" 
51    alt="Your browser can not run applets"
52    >
53    <%
54    for (Map.Entry<String, String> entry : appletParameters.entrySet())
55    {
56      %>
57      <param name="<%=entry.getKey()%>" value="<%=entry.getValue()%>">
58      <%
59    }
60    %>
61  </applet>
62  </div>
63
64    <table align="center">
65    <tr>
66      <td><base:button onclick="window.close();" title="Close" /></td>
67    </tr>
68    </table>
69
70</base:body>
71</base:page>
Note: See TracBrowser for help on using the repository browser.