jasdeep parmar wrote:that also didnt work
A web server is not a file server.
A web server is not a file server.
A URL path is not a file path.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
jasdeep parmar wrote:My applications war in not on the network drive.
It is on the local machine where tomcat itself is.
The images i need to get are in "pictures" folder on network drive
To check if the file exist i am using this
String url = webUrl +"/pictures/image1.jpg";
HttpURLConnection co n = (HttpURLConnection) new URL(URLName).openConnection();
con.setRequestMethod("HEAD");
boolean exist = (con.getResponseCode() == HttpURLConnection.HTTP_OK);
LogHelper.log("respose " + con.getResponseCode());
this also return code 404;
so even if I use servlet how do i give it a path as to where to go..
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|