While trying to upload the Image in struts2
the image is not uploading and showing following msg
Unable to find struts.multipart.saveDir property setting. Defaulting to javax.servlet.context.tempdir
How to solve this problem
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.
You need to specify
property in either struts.xml file as a constant entry or you need to specify that in struts.properties file choice is all yours.
this is the case with your post since you have not specified the location by yourself so struts2 is picking up the temp location for file upload.
here is the link defining the details
File Upload
edit
in
struts.xml