faisal usmani

Ranch Hand
+ Follow
since Jan 14, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by faisal usmani

Thanks to both of you .
17 years ago
yes Joe , it's changed . All i need to give them is a way to do bulk upload of songs , initially i thought http could be the solution but now i think ftp will be a better option , in terms of performance .

An upload of 100 songs at a time i dont think http is a good choice , what do you say
17 years ago
Hi ,

I am not sure whether anybody will care to answer this or not . But i really need help . Actually i have to make an ftp client using an applet to upload songs (bulk Upload)to a remote server . But the problem is i dont know how to start with if any body of you have any idea please share

A pseudo code will be of really great help. I tried google but came out with nothing worth while , so finally i have to turn to my ranch for help .


Thanks in advance

Regards
17 years ago
sorry to say parshuram , but even that is not option , it has to be the way, i posted initially


thanks though for giving your time and concern
17 years ago
Sorry Dan , but i cannot use ftp , i have to do on http
17 years ago
hi ,
i am working on .wav file bulk upload and for that i am using DiskFileUpload.

The user will give me the names of the files along with the absolute path on its local machine in a file.

now i have to read that file , get the names and the paths for the .wav files on the user's local machine and upload them with that name on the remote server.

something like this

there is a abc.txt(suppose) file containing the name and the path of the .wav files

name absolute path
music1, c:\music1.wav
music2, c:\music2.wav
music3, c:\music3.wav

now he will give me this abc.txt file , i have to read abc.txt and upload the files.


my problem is how to i get the stream object remotely , locally i am able to do by using this

InputStream in = new FileInputStream(absolutepath);


help me !!!


regards
17 years ago
Thanks Campbell , i hope more people come and throw light on this
17 years ago
hi ,

returning null through a member function ? , is it a good practise or or not in java. I dont remember the date , but it has been discussed earlier, that time i could not understand what should be the best practise.

I am working on a database , looking for a particular record , the column is of varchar(2)type , now if i have an entry in that column i should return the entry otherwise i can return null or may be a zero length string . , its upon me ..

So what should i do



regards
17 years ago
hi Keith , would be really thankful if you could tell me the name of the method.


regards
17 years ago
hi ,

I was wondering is there any way in java to delete a file which is on a hard disk .



regards
17 years ago
hi ranchers,

I am suppose to work on Access Service Request using Java , but i hardly know about it i did a google but nothing turn up worth while, is there any online source you people know.I tried Verizon partner solutions but even that was vain.


Thanx in advance
faisal
17 years ago
hi ranchers,

I am little novice in this j2ee technologies, but have to make a file upload code for bulk uploading of .wav files. Dont even know where to start with , some of my friends say i should use servlets , some say JSP while others normal java. I tried google but even that didnt turn out of much use.

so what do you people say ? . Beside i also want to know how to do we make a code for uploading a file then only i can go for bulk upload code. A small example will be of really great help. I am using TOMCAT as web server.

Thanx in advance

-faisal
17 years ago

Originally posted by Paul Sturrock:
Or you could just use log4j.



Actually i am working on log4j , but dont have much knowledge about it,can you give me some resources on log4j , besides i need to delete the content of the log file(completely) after every 50 days. The application is running on Tomcat , is there any provision given in log4j for deleting contents of the file, or if there any provision to delete the old file and create a new file with the same name.


Thanx in advance.

-faisal
17 years ago
JSP
hello ranchers,

I want to know is there any way to get the name of the JSP page using java . I mean is there any such concept to get the name of the Jsp page as we can get the name of the java class files using java.lang.reflect.*;
getClass() method .

I have to make a log file , where any message coming from a JSP page to Tomcat console should be logged , beside the name of the JSP.


Thanx in advance .
[ May 19, 2006: Message edited by: Bear Bibeault ]
17 years ago
JSP
hello,

i am not sure whether i will make sense or not , but i am just curious to know is there any difference between <jsp:forward> action tag and forward method of RequestDispatcher in Servlet's .

I mean both forwards the request , and if i am not not mistaken they pass values through browser header , correct me if i wrong.


Is there any difference


regards
17 years ago
JSP