0

I'm trying to upload files with Servlet in a Maven Java Web project. But the code:

request.getServletContext().getRealPath("/")

returns a path to

C:\Users\user\Documents\NetBeansProjects\ProjectWeb\target\ProjectWeb-1.0-SNAPSHOT

I don't want to save files at this directory, I want save them at a directory named files under my WebPages project, along with the jsp pages. It's making difficult to retrieve the file path with jstl.

What am I'm missing?

0 Answers0