This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 63548

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!