How can I get real path for file in my WebContent folder? Question I need to get real path for file in my WebContent directory, so that framework that I use can access that file. I use Spring Framework, so solution should be possible to make in Spring.
Spring will then pass the request object when it calls the mapped method RequestMapping NAPIUtils; import com. DesignerFacesServlet; import com. Setze ein Lesezeichen auf den Permalink. November um Thanks as always Sven — wow! Sven Hasselbach sagt:. Stefano Fois sagt:. When I try to open a non exisiting file, the resulting NotesNote object is null. Dezember um This is definitely a great blog.
Thank you very much. Suche Suche nach:. Proudly powered by WordPress. OK Privacy Policy. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website.
We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies.
IOException ;. ServletException ;. MultipartConfig ;. WebServlet ;. HttpServlet ;. HttpServletRequest ;. HttpServletResponse ;. Part ;. HttpServletResponse; import java. List; import org. FileItem; import org. DiskFileItemFactory; import org. List ;. I get the exception java. ServletContextFacade 36c Any ideas? After using servletContext. Here, the code work fine. I'm using Tomcat 6. Now I see that you are using IBM platform. Maybe, that's the difference between results.
Rajan Rajan 6 6 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
Email Required, but never shown. The Overflow Blog.
0コメント