Add "fileData" to the request as an attribute. Use JSP expression syntax (<%= ... %>
to get the data filled in textfield.
You can make a bean with the file information (fileName, fileSize, fileData etc..) and set that bean in request and use syntax like:<jsp:getProperty name="fileBean" property="fileData"/>
Hope there more better ways. Its pretty simple I guess.