Re: Copying file over network.
From: Matt Humphrey (matth_at_ivizNOSPAM.com)
Date: 08/20/04
- Next message: John Creighton: "Re: Newbie attempts to analyze diet"
- Previous message: tallan: "Re: using <logic:iterate>"
- In reply to: Rajul: "Re: Copying file over network."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 20 Aug 2004 14:39:34 -0400
"Rajul" <kingrajul@hotmail.com> wrote in message
news:b11d6212.0408200746.bb752bd@posting.google.com...
> Hi Matt,
> thanks for information ! i have a batch file that generates few (10
> per batch)very small files (1k each). These files contain data number
> that .. when represented in a web page makes sense.
> There will be couple of such batch files all around the infrastructure
> of different clients and i need a functionality that these files are
> automatically transferred/written/copied to my web server. I can not
> use JSP form post because it will require manual intervention. Is
> there a way that a java application can post files (multipart) to my
> file receiving servlet without a form submit.
If you can install a Java application on each machine, that program can form
the HTTP POST request to your servlet. An application also will not have
security problems for reading files or opening connections that an applet
would and it can be fully automated. It's been a long time since I last
used that kind of function, so I can't give you the exact syntax for it, but
I'm sure you can find it somewhere, perhaps on Roedy's site
http://mindprod.com/jgloss/jgloss.html. Essentially, you create an HTTP
Request and copy the file contents to the request's output stream.
Cheers,
Matt Humphrey matth@ivizNOSPAM.com http://www.iviz.com/
- Next message: John Creighton: "Re: Newbie attempts to analyze diet"
- Previous message: tallan: "Re: using <logic:iterate>"
- In reply to: Rajul: "Re: Copying file over network."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|