file upload - How to get MultipartFile java 1.42 -
i using xslt client-side , java 1.42 server -side , no framework such spring.my xslt code is:
<form method="post" id="frmfillfile" style="margin:0px;padding:0px;" enctype="multipart/form-data"> <label for="file">filename:</label> <input type="file" name="file" id="file"><br></br></input> <input type="hidden" name="readfile" value="readfile"/> <input type="submit" name="submit" value="submit"></input> <input type="file" accept="text/plain, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" id="fileselect" /> </form>
for server side need multipartfile.the code should that:
multipartfile mfile= rproxy.getrequest().getmultipart("file");
but java 1.4 doesn't support multipartfile httpservletrequest.
do have suggestion file?
Comments
Post a Comment