Form values ---> Writing to a text file --- JAVA
Posted on 2004-11-10
I have a form (Submit.jsp) which contains three fields. First one is 'Wall time' and the second one is memory and the third one is 'comment'. Once i enterend the values for these three fields and submit the form, a text file has to be generated as shown below.For example if i entered in the first column 500, in the second column '200mb', in the third column './subrun', the text file should be genetared like as shown below.That means the user is setting the values for the second line,third line and sixth line (see the below text file).
#PBS -l walltime=500:00 <--- second line
#PBS -l mem=200mb <--- third line line
#PBS -j oe
./subrun <--- sixth line
Please help me in this regard.A snippest of code would be helpful.