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

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

File:
1 edited

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>
Note: See TracChangeset for help on using the changeset viewer.