I need to read a file from the local file system using JSP, save it as a string , and send it to a webservice(deployed using glassfish) for processing. Can anyone suggest how to perform File IO using JSP?
Thanks,
Deepak.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Doing File I/O from a JSP is the same as doing it normally: Just use the
java.ioorjava.nioclasses. If you need to map a virtual path to a real one, you can useServletContext#getRealPath.