Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file uploading to server....

Status
Not open for further replies.

GoSooJJ

Programmer
Feb 24, 2001
76
US
hi,
I have question about uploading text file to server.
I research about this, but still can not find answer for this. Since I'm not familiar with class and servelet, I need big help. What is the simple way to upload file to server? Is there way to do without 3rd party application, I mean such as MulitipartRequest, smartUploadfile,... If not, how can I setup MultipartRequest to work? I'm just beginning jsp developer and don't know much about java.

Again thx for ur help and great site!
JJ //
 
Sure, there are ways to do it without using 3rd party tools but it is a pain. You would need to parse the HTTP Request yourself and pick out the file and the parameters. This is not hard but it is also not simple. I think Jason Hunter has added some custom JSP tags to support his MultipartRequest utility so you could use them directly in your JSP. Check his site at
 
thank you wushutwist!
i went to sevlets.com(i have been there before) and read articles very carefully about multipartrequest function. somehow, i understood better than last night ^^. I figure it out. thx again...

those who want to use above function, u can download multipartrequest from and copy 'cos.jar' to classpath directory. reboot ur computer and u r set~

JJ //
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top