File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes File Upload with out HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "File Upload with out HTML" Watch "File Upload with out HTML" New topic

File Upload with out HTML

Kash Mhai

Joined: Apr 01, 2005
Posts: 29
I need to upload a file using a servlet, but WITHOUGHT USING HTML. I mean I need to pass a variable to a servlet and it should upload the file. Eg., I cal a servlet like this http://localhost:7001/sampleapp/abc.servlet?fname=abc.txt
and t he abc.txt should be uploaded. Is this possible? I have uploaded files using Multipart Request and all, but in this condition i need to bypass the HTML totally. Is this possible?


-------------<br />There are wheels within wheels...<br />P.G Wodehouse
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Originally posted by Kash Mhai:
Is this possible?


[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: File Upload with out HTML
It's not a secret anymore!