source: branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/submit.jsp @ 540

Last change on this file since 540 was 540, checked in by mbayer, 15 years ago

changed code so that users can either run the wizard or import data using the old style importer

File size: 5.9 KB
Line 
1<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
2<%@ page import="net.sf.basedb.core.*"%>
3<%@ page import="net.sf.basedb.clients.web.*"%>
4<%@ page import="net.sf.basedb.util.*"%>
5<%@ page import="uk.ac.ebi.nugo.plugins.*"%>
6<%@ page import="java.lang.reflect.*"%>
7
8<!-- this page never actually loads - it simply gathers up all the parameters we need to send and forwards the request
9to the submission page, /common/plugin/index.jsp -->
10
11<jsp:useBean id="inputDataBean" class="uk.ac.ebi.nugo.plugins.DataBean" scope="session" />
12
13
14<%
15  SessionControl sc = Base.getExistingSessionControl(pageContext, true);
16  String ID = sc.getId();
17  String requestId = request.getParameter("requestId");
18 
19
20  String [] paramNames = Tab2MageImporter.getParamNames();
21
22  //print out all current parameter values in the bean
23  System.out.println("=================================");
24  System.out.println("current parameter values in the data bean:");
25  System.out.println("=================================");
26  Class cls = inputDataBean.getClass();
27  for (int i = 0; i < paramNames.length; i++)
28  {
29    Field field = cls.getDeclaredField(paramNames[i]);
30    String value = (String)field.get(inputDataBean);
31    String fieldName = field.getName();
32    System.out.println(fieldName + " = " + value);
33  }
34  System.out.println("=================================");
35  System.out.println("end parameters:");
36  System.out.println("=================================");
37%>
38
39
40<jsp:forward page="/common/plugin/index.jsp">
41
42<jsp:param name="parameter:domain" value="<%=inputDataBean.getDomain()%>" />
43<jsp:param name="parameter:accession" value="<%=inputDataBean.getAccession()%>" />
44<jsp:param name="parameter:qualityControl" value="<%=inputDataBean.getQualityControl()%>" />
45<jsp:param name="parameter:experimentalDesign" value="<%=inputDataBean.getExperimentalDesign()%>" />
46<jsp:param name="parameter:experimentName" value="<%=inputDataBean.getExperimentName()%>" />
47<jsp:param name="parameter:description" value="<%=inputDataBean.getDescription()%>" />
48<jsp:param name="parameter:releaseDate" value="<%=inputDataBean.getReleaseDate()%>" />
49<jsp:param name="parameter:submissionDate" value="<%=inputDataBean.getSubmissionDate()%>" />
50<jsp:param name="parameter:submitter" value="<%=inputDataBean.getSubmitter()%>" />
51<jsp:param name="parameter:organization" value="<%=inputDataBean.getOrganization()%>" />
52<jsp:param name="parameter:publicationTitle" value="<%=inputDataBean.getPublicationTitle()%>" />
53<jsp:param name="parameter:authors" value="<%=inputDataBean.getAuthors()%>" />
54<jsp:param name="parameter:journal" value="<%=inputDataBean.getJournal()%>" />
55<jsp:param name="parameter:volume" value="<%=inputDataBean.getVolume()%>" />
56<jsp:param name="parameter:issue" value="<%=inputDataBean.getIssue()%>" />
57<jsp:param name="parameter:pages" value="<%=inputDataBean.getPages()%>" />
58<jsp:param name="parameter:year" value="<%=inputDataBean.getYear()%>" />
59<jsp:param name="parameter:pubmedId" value="<%=inputDataBean.getPubmedId()%>" />
60<jsp:param name="parameter:experimentId" value="<%=inputDataBean.getExperimentId()%>" />
61<jsp:param name="parameter:treatmentProtocol" value="<%=inputDataBean.getTreatmentProtocol()%>" />
62<jsp:param name="parameter:extractionProtocol" value="<%=inputDataBean.getExtractionProtocol()%>" />
63<jsp:param name="parameter:labelingProtocol" value="<%=inputDataBean.getLabelingProtocol()%>" />
64<jsp:param name="parameter:hybridizationProtocol" value="<%=inputDataBean.getHybridizationProtocol()%>" />
65<jsp:param name="parameter:scanningProtocol" value="<%=inputDataBean.getScanningProtocol()%>" />
66<jsp:param name="parameter:treatmentProtocolParams" value="<%=inputDataBean.getTreatmentProtocolParams()%>" />
67<jsp:param name="parameter:extractionProtocolParams" value="<%=inputDataBean.getExtractionProtocolParams()%>" />
68<jsp:param name="parameter:labelingProtocolParams" value="<%=inputDataBean.getLabelingProtocolParams()%>" />
69<jsp:param name="parameter:hybridizationProtocolParams" value="<%=inputDataBean.getHybridizationProtocolParams()%>" />
70<jsp:param name="parameter:scanningProtocolParams" value="<%=inputDataBean.getScanningProtocolParams()%>" />
71<jsp:param name="parameter:platform" value="<%=inputDataBean.getPlatform()%>" />
72<jsp:param name="parameter:organism" value="<%=inputDataBean.getOrganism()%>" />
73<jsp:param name="parameter:numDesigns" value="<%=inputDataBean.getNumDesigns()%>" />
74<jsp:param name="parameter:dyeSwap" value="<%=inputDataBean.getDyeSwap()%>" />
75<jsp:param name="parameter:refSample" value="<%=inputDataBean.getRefSample()%>" />
76<jsp:param name="parameter:numTreatmentGroups" value="<%=inputDataBean.getNumTreatmentGroups()%>" />
77<jsp:param name="parameter:expFactors" value="<%=inputDataBean.getExpFactors()%>" />
78<jsp:param name="parameter:numReplicates" value="<%=inputDataBean.getNumReplicates()%>" />
79<jsp:param name="parameter:tissues" value="<%=inputDataBean.getTissues()%>" />
80<jsp:param name="parameter:pooling" value="<%=inputDataBean.getPooling()%>" />
81<jsp:param name="parameter:path" value="<%=inputDataBean.getPath() %>" />
82<jsp:param name="parameter:subjectNames" value="<%=inputDataBean.getSubjectNames()%>" />
83<jsp:param name="parameter:fileList" value="<%=inputDataBean.getFileList()%>" />
84<jsp:param name="parameter:subjectList" value="<%=inputDataBean.getSubjectList()%>" />
85<jsp:param name="parameter:tissueList" value="<%=inputDataBean.getTissueList()%>" />
86<jsp:param name="parameter:useWizard" value="<%=inputDataBean.getUseWizard()%>" />
87<jsp:param name="parameter:legacyData" value="<%=inputDataBean.getLegacyData()%>" />
88<jsp:param name="parameter:mappingsMode" value="<%=inputDataBean.getMappingsMode()%>" />
89
90<jsp:param name="parameter:fileList" value=""/>
91<jsp:param name="parameter:subjectList" value=""/>
92<jsp:param name="parameter:tissueList" value=""/>
93
94<jsp:param name="cmd" value="SetParameters"/>
95
96</jsp:forward>
97
98
Note: See TracBrowser for help on using the repository browser.