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

Last change on this file since 539 was 539, checked in by mbayer, 14 years ago

forgot to add new files -- now added

File size: 6.0 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  final SessionControl sc = Base.getExistingSessionControl(pageContext, true);
16  final String ID = sc.getId();
17  final 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="<%= request.getContextPath()%>/common/plugin/index.jsp">
41
42<jsp:param name="ID" value="<%=ID%>" /> 
43<jsp:param name="cmd" value="SetParameters"/> 
44<jsp:param name="requestId" value="<%=requestId%>" /> 
45
46<jsp:param name="parameter:fileList" value=""/>
47<jsp:param name="parameter:subjectList" value=""/>
48<jsp:param name="parameter:tissueList" value=""/>
49<jsp:param name="parameter:domain" value="<%=inputDataBean.getDomain()%>" />
50<jsp:param name="parameter:accession" value="<%=inputDataBean.getAccession()%>" />
51<jsp:param name="parameter:qualityControl" value="<%=inputDataBean.getQualityControl()%>" />
52<jsp:param name="parameter:experimentalDesign" value="<%=inputDataBean.getExperimentalDesign()%>" />
53<jsp:param name="parameter:experimentName" value="<%=inputDataBean.getExperimentName()%>" />
54<jsp:param name="parameter:description" value="<%=inputDataBean.getDescription()%>" />
55<jsp:param name="parameter:releaseDate" value="<%=inputDataBean.getReleaseDate()%>" />
56<jsp:param name="parameter:submissionDate" value="<%=inputDataBean.getSubmissionDate()%>" />
57<jsp:param name="parameter:submitter" value="<%=inputDataBean.getSubmitter()%>" />
58<jsp:param name="parameter:organization" value="<%=inputDataBean.getOrganization()%>" />
59<jsp:param name="parameter:publicationTitle" value="<%=inputDataBean.getPublicationTitle()%>" />
60<jsp:param name="parameter:authors" value="<%=inputDataBean.getAuthors()%>" />
61<jsp:param name="parameter:journal" value="<%=inputDataBean.getJournal()%>" />
62<jsp:param name="parameter:volume" value="<%=inputDataBean.getVolume()%>" />
63<jsp:param name="parameter:issue" value="<%=inputDataBean.getIssue()%>" />
64<jsp:param name="parameter:pages" value="<%=inputDataBean.getPages()%>" />
65<jsp:param name="parameter:year" value="<%=inputDataBean.getYear()%>" />
66<jsp:param name="parameter:pubmedId" value="<%=inputDataBean.getPubmedId()%>" />
67<jsp:param name="parameter:experimentId" value="<%=inputDataBean.getExperimentId()%>" />
68<jsp:param name="parameter:treatmentProtocol" value="<%=inputDataBean.getTreatmentProtocol()%>" />
69<jsp:param name="parameter:extractionProtocol" value="<%=inputDataBean.getExtractionProtocol()%>" />
70<jsp:param name="parameter:labelingProtocol" value="<%=inputDataBean.getLabelingProtocol()%>" />
71<jsp:param name="parameter:hybridizationProtocol" value="<%=inputDataBean.getHybridizationProtocol()%>" />
72<jsp:param name="parameter:scanningProtocol" value="<%=inputDataBean.getScanningProtocol()%>" />
73<jsp:param name="parameter:treatmentProtocolParams" value="<%=inputDataBean.getTreatmentProtocolParams()%>" />
74<jsp:param name="parameter:extractionProtocolParams" value="<%=inputDataBean.getExtractionProtocolParams()%>" />
75<jsp:param name="parameter:labelingProtocolParams" value="<%=inputDataBean.getLabelingProtocolParams()%>" />
76<jsp:param name="parameter:hybridizationProtocolParams" value="<%=inputDataBean.getHybridizationProtocolParams()%>" />
77<jsp:param name="parameter:scanningProtocolParams" value="<%=inputDataBean.getScanningProtocolParams()%>" />
78<jsp:param name="parameter:platform" value="<%=inputDataBean.getPlatform()%>" />
79<jsp:param name="parameter:organism" value="<%=inputDataBean.getOrganism()%>" />
80<jsp:param name="parameter:numDesigns" value="<%=inputDataBean.getNumDesigns()%>" />
81<jsp:param name="parameter:dyeSwap" value="<%=inputDataBean.getDyeSwap()%>" />
82<jsp:param name="parameter:refSample" value="<%=inputDataBean.getRefSample()%>" />
83<jsp:param name="parameter:numTreatmentGroups" value="<%=inputDataBean.getNumTreatmentGroups()%>" />
84<jsp:param name="parameter:expFactors" value="<%=inputDataBean.getExpFactors()%>" />
85<jsp:param name="parameter:numReplicates" value="<%=inputDataBean.getNumReplicates()%>" />
86<jsp:param name="parameter:tissues" value="<%=inputDataBean.getTissues()%>" />
87<jsp:param name="parameter:pooling" value="<%=inputDataBean.getPooling()%>" />
88<jsp:param name="parameter:path" value="<%=inputDataBean.getPath() %>" />
89<jsp:param name="parameter:subjectNames" value="<%=inputDataBean.getSubjectNames()%>" />
90<jsp:param name="parameter:fileList" value="<%=inputDataBean.getFileList()%>" />
91<jsp:param name="parameter:subjectList" value="<%=inputDataBean.getSubjectList()%>" />
92<jsp:param name="parameter:tissueList" value="<%=inputDataBean.getTissueList()%>" />
93<jsp:param name="parameter:useWizard" value="<%=inputDataBean.getUseWizard()%>" />
94<jsp:param name="parameter:legacyData" value="<%=inputDataBean.getLegacyData()%>" />
95<jsp:param name="parameter:mappingsMode" value="<%=inputDataBean.getMappingsMode()%>" />
96
97
98</jsp:forward>
99
100
Note: See TracBrowser for help on using the repository browser.