path manipul;ation
hello
[cod]
I have images in web application in the folder
myApp / tempData
I will display the images
I work local on my home pc
String p1 = request.getSession().getServletContext().getRealPath("/")+"tempData"+java.io.File.separator;
output > C:\Program Files\Tomcat\webapps\xx\tempData\
I want use this path in the front end
I try to manipulate the path
frontEndPath: C:\\Program Files\\Tomcat\\webapps\\xx\\tempData\\
but the omages can not be found and can not be displayed
how to change the path to display the images in browser
[/code]
thanks
hello
I have images in web application in the folder
myApp / tempData
I will display the images
I work local on my home pc
String p1 = request.getSession().getServletContext().getRealPath("/")+"tempData"+java.io.File.separator;
output > C:\Program Files\Tomcat\webapps\xx\tempData\
I want use this path in the front end
I try to manipulate the path
frontEndPath: C:\\Program Files\\Tomcat\\webapps\\xx\\tempData\\
but the omages can not be found and can not be displayed
how to change the path to display the images in browser
thanks
hello
I have images in web application in the folder
myApp / tempData
I will display the images
I work local on my home pc
String p1 = request.getSession().getServletContext().getRealPath("/")+"tempData"+java.io.File.separator;
output > C:\Program Files\Tomcat\webapps\MyApp\tempData\
I want use this path in the front end
I try to manipulate the path
frontEndPath: C:\\Program Files\\Tomcat\\webapps\\MyApp\\tempData\\
but the omages can not be found and can not be displayed
how to change the path to display the images in browser