Changeset 3102


Ignore:
Timestamp:
Feb 5, 2007, 11:02:35 PM (17 years ago)
Author:
Jari Häkkinen
Message:

Addresses #10 and #352. MeV jsp uses Servlet API to retrieve server information (name,port,...).

Location:
trunk/www/plugins/org/tigr/microarray/mev
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/www/plugins/org/tigr/microarray/mev/launch_mev.jsp

    r3100 r3102  
    55  This file is part of BASE - BioArray Software Environment.
    66  Available at http://base.thep.lu.se/
    7 
    8   This file is part of BASE.
    97
    108  BASE is free software; you can redistribute it and/or
     
    2927
    3028<%@ page session="false"
    31   import="net.sf.basedb.util.Values"
    32   import="net.sf.basedb.plugins.BioAssaySetExporter"
    3329%>
    3430<%
    3531final String SessionID=request.getParameter("ID");
    36 final int bioassaysetId=Values.getInt(request.getParameter("bioassayset_id"));
    37 final BioAssaySetExporter base=null;
     32final String bioassaysetId=request.getParameter("bioassayset_id");
     33final String serverName=request.getServerName();
     34final int serverPort=request.getServerPort();
     35final String serverPath=request.getContextPath();
    3836%>
    3937
     
    4644 
    4745<jnlp spec="1.0"
    48   codebase="http://localhost:8080/base/plugins/org/tigr/microarray/mev"
     46  codebase="http://<%=serverName%>:<%=serverPort%><%=serverPath%>/plugins/org/tigr/microarray/mev"
    4947  version="4.0">
    5048
     
    9290    <jar href="vecmath.jar"/>
    9391    <jar href="xerces.jar"/>
    94     <extension name="others" href="others.jnlp"/>
     92    <extension name="others" href="others.jsp"/>
    9593    <j2se version="1.4.2+"
    9694      max-heap-size="512M"
     
    9896  </resources>
    9997  <application-desc main-class="org.tigr.microarray.mev.TMEV">
    100     <argument>-download_url http://localhost:8080/base/plugins/org/tigr/microarray/mev/export?ID=<%=SessionID%>&bioassayset_id=<%=bioassaysetId%></argument>
     98    <argument>-download_url http://<%=serverName%>:<%=serverPort%><%=serverPath%>/plugins/org/tigr/microarray/mev/export?ID=<%=SessionID%>&bioassayset_id=<%=bioassaysetId%></argument>
    10199    <argument>-row 1</argument>
    102100    <argument>-column 20</argument>
  • trunk/www/plugins/org/tigr/microarray/mev/others.jsp

    r3101 r3102  
    2626-->
    2727
    28 <?xml version="1.0" encoding="utf-8"?>
     28<%@ page session="false"
     29%>
     30<%
     31final String serverName=request.getServerName();
     32final int serverPort=request.getServerPort();
     33final String serverPath=request.getContextPath();
     34%>
     35
     36<%@page contentType="application/x-java-jnlp-file"%>
     37<%
     38response.setHeader("Expires", "0");
     39%>
     40<?xml version="1.0" encoding="UTF-8"?>
     41<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc.//DTD JNLP 1.5//EN" "http://www.netbeans.org/jnlp/DTD/jnlp.dtd">
    2942
    3043<jnlp spec="1.0"
    31       codebase="http://localhost:8080/base/plugins/org/tigr/microarray/mev"
     44  codebase="http://<%=serverName%>:<%=serverPort%><%=serverPath%>/plugins/org/tigr/microarray/mev"
    3245      version="4.0">
    3346  <information>
Note: See TracChangeset for help on using the changeset viewer.