Ignore:
Timestamp:
Jun 22, 2009, 2:00:26 PM (12 years ago)
Author:
Nicklas Nordborg
Message:

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.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.genepattern/trunk/resources/visualizer_applet.jsp

    r1132 r1134  
    2222  ------------------------------------------------------------------
    2323
    24   @author Jari, Nicklas
     24  @author Nicklas
    2525--%>
    2626<%@ page
    2727  pageEncoding="UTF-8"
    2828  session="false"
     29  import="net.sf.basedb.clients.web.util.HTML"
    2930  import="java.util.Map"
    3031%>
    3132<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
    3233<%
    33 Map<String, String> appletParameters = (Map<String, String>)request.getAttribute("appletParameters");
     34final Map<String, String> appletParameters =
     35  (Map<String, String>)request.getAttribute("appletParameters");
     36String module = appletParameters.get("name");
    3437%>
    35 <base:page type="popup" title="">
    36 <base:head >
    37 
    38 </base:head>
     38<base:page type="popup" title="<%=HTML.encodeTags(module)%>">
     39<base:head></base:head>
    3940<base:body>
    40   <h3><%=appletParameters.get("name")%></h3>
     41  <h3 class="docked"><%=HTML.encodeTags(module)%></h3>
    4142  <div class="boxedbottom">
    4243  The visualizer will start in it's own window. It is safe to
    4344  close this window once the visualizer is up and running.
    44  
     45  <p>
    4546  <applet
    4647    code="org.genepattern.visualizer.RunVisualizerApplet"
    4748    archive="runVisualizer.jar,commons-httpclient.jar,commons-codec-1.3.jar"
    48     codebase="downloads"
     49    codebase="visualizer"
    4950    width="1" height="1"
    5051    alt="Your browser can not run applets"
    5152    >
     53    <%
     54    for (Map.Entry<String, String> entry : appletParameters.entrySet())
     55    {
     56      %>
     57      <param name="<%=entry.getKey()%>" value="<%=entry.getValue()%>">
    5258      <%
    53       for (Map.Entry<String, String> entry : appletParameters.entrySet())
    54       {
    55         %>
    56         <param name="<%=entry.getKey()%>" value="<%=entry.getValue()%>">
    57         <%
    58       }
    59       %>
     59    }
     60    %>
    6061  </applet>
    6162  </div>
     
    6970</base:body>
    7071</base:page>
    71 <%
    72 
    73 %>
Note: See TracChangeset for help on using the changeset viewer.