I am trying to write this quick li'l thing to do an ls in a given directory and return the results (if any) to the screen. I thought I could use Runtime.exec but in reading up it says that should really only be used to run programs. What would I use instead?
Thank you in advance for your help :)
I have a delivery sheet being emailed. The first page is dynamic. That attaches fine. The second page has to be emailed with the first page also an attachment. They're both pdf files. When I try to attach it I get no errors but it creates an empty file. I don't want to recreate the second file...
Okay who's a ftp wiz?! :)
We recently moved our servers behind a firewall and were told we had to change our feed programs to use a passive connection. I can get the mode changed to passive and it gets the file but then the connection hangs. Am I closing the connection incorrectly?
Here's a...
Hi,
I have a program that ftp's a file from a server that is outside our firewall. I'm told I have to send the "pasv" command in order to let the data connection bring the file back. I can see in the debugging that it's setting the connection as passive but it sets it back to active when I get...
There's a gettimeinmilliseconds which is protected. getTime().getTime() returns the milliseconds.
long, int, Integer, it doesn't matter what I use the result is the same. Even if the time difference is only an hour the output isn't correct.
Using this as an example:
compare1: 1077614100712...
The code originally was for multiple forms. Moving the form outside my loop is what broke this. I'm trying to change it to give me the value of the form elements for the row that was checked. I don't need the check box value, that's just set to the row index. I need the value of some other...
I have a form w/ 5 selects. When you first enter this page only the first select is filled. Once the user selects one of the options I want it to refresh the page so I can fill the next select based. And so on for each select list. I have a server side process that's called whenever the page is...
I have 2 questions.
I have a query that I need to return the difference between 2 dates. One is a timestamp field the other is a char field but it's in timestamp format.
First question is, is the extend the way I have it correct? It works but only if there's a value.
Second question is...
...//Calendar varCurrentCal = new GregorianCalendar(TimeZone.getTimeZone("CST"));
String[] ids = TimeZone.getAvailableIDs(-6 * 60 * 60 * 1000);
// if no ids were returned, something is wrong. get out.
if (ids.length == 0)
System.exit(0);
// create a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.