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

[648 byte] By [the_Orienta] at [2007-11-27 0:22:10]
# 1

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

the_Orienta at 2007-7-11 22:16:43 > top of Java-index,Java Essentials,Java Programming...
# 2

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

the_Orienta at 2007-7-11 22:16:43 > top of Java-index,Java Essentials,Java Programming...