Hi Mark,
sorry, if I didn't explain it properly. My english is not
very good.
I run tomcat as the localhost on my computer. If I try
to connect (with the IE for example) tomcat from another
pc on the network it works fine.
I can connect to my application from another pc and
everything except of
hi,
i got a strange tomcat problem that I don't understand.
I've built a servlet that dynamically loads files from a folder
in my application. If I run the application on my pc everything
works fine. But if I try to run it from another pc in the network
the servlet loads a blank page except of th
oes not
exist or is read only!"); }
You could also try and put the sleep and retry in a loop.
However, the main error in your code was that the datName reference when
creating a the File object was a string - when it should be a variable
reference! i.e. new File("datename") should be
Hi anyone,
I'd like to delete a file with a servlet. I tried it with the delete()
function and with the runtime.exec() function. What am I doing wrong?
Here's my code:
Solution 1:
[...]
String cmd = "del C:\\" + request.getParameter("Id") + "-" + eleno + ".xml";
Runtime runtime = Runtime.getRunti