I have an Application in Java EE using Apache Commons File Upload API. Everything is going smoothly so far but I have a question.
I have some kind of validation on the server side - if there is any problem I have to send the user to the previous page and inform the problem to the user. Also I have to load the data into the form, but when I use request.getParameter("key")
in the JSP, it is returning null
.
I have tested with the request not being handled by commons-fileupload
and I see the result.
My question is how to keep the request.getParameter("key")
and send it back to the client after the request is handled by org.apache.commons.fileupload.servlet.ServletFileUpload
?
<%out.println(request.getParameter("cedula"));%>
returning null
after request being handle by the API