I had an issue while working,
Let's say I had to get a client's file uploaded, so I was using
<form action='UploadFile.jsp' method='post' enctype='multiform/form-data'>
<input type='file' name='data' id='filechooser'>
</form>
Things were fine till I needed to add some more details to the form
now the form contained 2 more input tags,
<form action='UploadFile.jsp' method='post' enctype='multiform/form-data'>
<input type='file' name='data' id='filechooser'>
<input type='number' name='no_of_days'/>
<input type='date' name='dat'/>
</form>
Now the other two elements are showing null when i access them using request.getParameter() method.
I was using UploadFile from this tutorial
What I have tried?
I checked this question that was not similar but had a seemingly correct answer and tried the answer but i keep getting NullReferenceException for this line
BufferedReader reader = new BufferedReader(new InputStreamReader(part.getInputStream(), "UTF-8"));
This line of code is the part of answer in the above linked question