bad practice, you should check the return value of the renameTo() method.
Spring 3
Type: Posts; User: cafeteria84
bad practice, you should check the return value of the renameTo() method.
Spring 3
a common mistake here is that you don't check the boolean value return from the mkdir() method. It returns true if the operation succeeded, false if the user doesn't have permission or anything else...
Good example. Suggest to use Apache's Common FTP library.
Thanks for the useful tip.
Spring 3
Please check the format of the code.
Spring 3
Thanks for the useful post.
Spring 3
The following code strictly validates an email address agants the RFC822 syntax :
try {
InternetAddress addr = new InternetAddress(email, true);
// valid email
} catch...
Thanks for the post. I have not tested the code yet, but using InternetAddress is much more simple.
Spring 3
The old way still works. There is no need to use MultiPart if the email is plain text and does not contain attachments or inlines.
Spring 3
It works since Java 5 via autoboxing/unboxing feature. This understand is old and should be replaced.
Spring 3
Tomcat provides some useful startup/shutdown scripts located at its installation folder, so you can call those scripts from a Java program using the Runtime.exec() command.
Spring 3
By default, reading or writing files are not allowed for a normal applet, so you have to give appropriate permission to the applet by either using .java.policy file or sign the applet with a security...
A great tutorial, thanks a bunch!
Spring 3
Hi Dave,
Are you still interested in developing the project? I am a freelance Java developer who can help you completing the job.
Spring 3
Generally you can send a "ping" command to the server.
If you want to check if the server listens on a specific port, you need to initiates a socket connection at the specified port. Google "Java...
The default permissions for applet is very limited, so you should either have a .java.policy file or sign the applet using a certificate to give it the required permission.
Spring 3
Make sure that you have mysql-connector-java-xxx.jar present in the classpath.
Spring 3
Performance, Security and Maintainability.
You are trying to access an array element at the index which is greater than the array's size. Change i <= 5 to i < 5 it should work.
Spring 3
Making a database connection to a remote server from an applet is a very bad practice. Should be avoided.
Spring 3
Use GridBagConstraints.anchor property.
component.setMinimumSize(), component.setMaximumSize()
component.setFont(), component.setBackground(), component.setForeground()
Spring 3
Well, the solution is pretty simple, I suggest this algorithm for the highest odd number:
int highestOdd = Integer.MIN_VALUE;
if (number is odd and number > highestOdd) {
highestOdd =...
It looks like involving Encapsulation, not Abstraction. Abstraction refers to the usage of interfaces and abstract classes.
Spring 3
You need to use the append() method on the PrintWriter object, instead of the println() method you have tried.
Spring 3
I think you should examine the server log file to see what have been happened in details.
Spring 3