Использование Tomcat и Struts 2.
public FileAction class
{
......
public upload()
{
.....
String fullFileName = request.getContextPath() + "/productImages/" + filename;
File theFile = new File(fullFileName);
FileUtils.copyFile(upload, theFile);
.....
}
}
Проблема в том, что когда я загружаю изображение, оно не добавляет изображение в localhost:8085/shoppingCart/productImages
, а также не дает никаких исключений.
Но когда я напишу String fullFileName="c:upload/productImages/" + filename;
, он сохранит файл на c:upload/productImages/
path
означает нормальную работу в c:upload/productImages/
случае