Hi Bear,
I've a
jsp page where the user needs to either upload a text file or enter some data in a text field and submit.
If I just keep the file upload option and use the Apache Commons upload api and "enctype=multipart/form-data" then everything works fine.
However, if the text box is also made available and enctype is removed in the jsp, then
this line doesn't work and the method containing this code exits immediately.
Now, if I keep enctype as well, then if the file is uploaded and the text field is kept blank, then I get Null Pointer exception for reading the request parameter of textfield.
Could you please tell me if both text field and file uploading can be used with enctype set to multipart/form-data.
Thanks.