- Timestamp:
- Dec 15, 2009, 7:16:33 PM (11 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/LoadController.groovy
r64 r65 22 22 render("Loading ...\n"); 23 23 24 File file = new File("/home/ademcan/Desktop/magetab/examples/E-GEOD-2354.idf.txt"); 24 InputStream inputStream = request.getFile("uploadfile").inputStream; 25 BufferedReader fileReader = new BufferedReader(new InputStreamReader(inputStream)); 25 26 26 27 def investigationDesign = new magetab.idf.InvestigationDesign(); … … 35 36 ArrayList rows = new ArrayList(); 36 37 37 for (i in file .readLines()){38 for (i in fileReader.readLines()){ 38 39 String line = i.toString() ; 39 40 ArrayList tmp_list = new ArrayList(); 40 ListparsedTab = line.split("\t");41 def parsedTab = line.split("\t"); 41 42 42 43 for (j in parsedTab) { -
trunk/grails-app/views/load/index.gsp
r63 r65 18 18 </ul> 19 19 <div id="tab-simple"> 20 <g:form url="[action:'load',controller:'load']">20 <g:form action="load" controller="load" method="post" enctype="multipart/form-data"> 21 21 <input type="hidden" name="targetUri" value="${targetUri}" /> 22 <label class="grey" for=" querytext">Select the IDF file to load into dbNP :</label>22 <label class="grey" for="uploadfile">Select the IDF file to load into dbNP :</label> 23 23 <!--input class="field" type="text" name="querytext" id="querytext" size="40" /--> 24 24 <input type="file" name="uploadfile" />
Note: See TracChangeset
for help on using the changeset viewer.