Search Posts

Author: Gireesh Pai

How to display images uploaded using getServletContext().getRealPath("/") on JSP page?

I have a jsp page which uploads images on to the root of the project. But I cannot see those images on the project explorer in Netbeans IDE. But i can see the folder in C:UsersGireesh PaiDocumentsNetBeansProjectsmatrimonial_2buildwebimages and the files are correctly getting uploaded too. But I’m unable to display it on a jsp page by providing a link to it. Can any one help me out ? I’m attaching the code for upload below. […]