how to show uploaded image to jsp page in spring mvc -
i writing program in spring mvc upload , show image. save project in "d:/skillup/spring/uploaddemo" location.but when upload image uploaded.i specify location upload image in "web-inf/image" folder in project path. code of specify path is-
servletcontext context;
context.getrealpath("/web-inf/image") + file.separator ;
but save in location "d:\skillup\spring.metadata.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\uploaddemo\web-inf\image".
now question how show image uploaded location.?
Comments
Post a Comment