The moose likes Servlets and the fly likes how to use uploaded file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to use uploaded file" Watch "how to use uploaded file" New topic

how to use uploaded file

rakhi sinha
Ranch Hand

Joined: Mar 26, 2012
Posts: 147
in my project i am uploading a file using servlet ,i want to use this uploaded file in another servlet directly(without using getrealpath) can i do it???
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

save the file path in session or request object and retrieve it on another servlet.

ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Pondurai Singh
Ranch Hand

Joined: Jun 27, 2011
Posts: 35
See the following tutorials that will really help you.

Software Developer, Oracle Java Certification Training Labs at EPractize Labs.
I agree. Here's the link:
subject: how to use uploaded file
It's not a secret anymore!