Re: File Content Not Saved To Server

2007-03-14 Thread Teh Noranis Mohd Aris
Dear All, I've already modified my program based on Mr. Christopher's solution but thers's still the word null in the file. You probably have a null content variable. String.valueOf(null) returns null, so that's probably what's happening. I only declared URL servletUrl = null but

Re: File Content Not Saved To Server

2007-03-12 Thread org
, March 12, 2007 5:10 AM Subject: Re: File Content Not Saved To Server Dear All, I really need this program to work as soon as possible and need urgent help! Mr. Christopher Schultz have given suggestions on how to solve the problem and I've tried his suggestions. Thank you so much, as half

Re: File Content Not Saved To Server

2007-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Teh, Teh Noranis Mohd Aris wrote: Now, a file name that was input by the user was created BUT the problem is that, when I open the file, the word null was written to the file NOT the file content. You probably have a null content variable.

Re: File Content Not Saved To Server

2007-03-03 Thread Teh Noranis Mohd Aris
Dear All, First, thank you so much for the reply, Mr. Christopher Schultz. In my program, I want the servlet to load an applet where I can input the file name in a given text field and the file content in a given text area. When the user has input the information, I want to POST the file

Re: File Content Not Saved To Server

2007-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Teh, Teh Noranis Mohd Aris wrote: In my program, I want the servlet to load an applet where I can input the file name in a given text field and the file content in a given text area. Just out of curiosity, why do you want an applet to do this

Re: File Content Not Saved To Server

2007-03-03 Thread Teh Noranis Mohd Aris
Dear All, Thank you so much for the explanation, Mr. Christopher Schultz. I understand that by just using a file input type, I can upload a file directly. In fact, I already construct the program and it is already working. However, I choose to use applet to get the advantage of Java GUI

File Content Not Saved To Server

2007-03-01 Thread Teh Noranis Mohd Aris
Dear All, I want to save a file name and its content to the computer server at directory C:/temp/. I've passed the file name and file content parameter from the applet to the servlet. The problem now is that the file name is created in the computer server directory but a 'null' is