wood burning stoves*
The moose likes Struts and the fly likes File Upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "File Upload" Watch "File Upload" New topic
Author

File Upload

DVVN Sudhakara Rao
Greenhorn

Joined: Oct 04, 2004
Posts: 17
Hi,
I have a applicaiton using struts. In my jsp page I want to give the users option to upload a Image/emotoicon. Can any body guide me how can we achieve it?
Sujatha Kumar
Ranch Hand

Joined: Jan 05, 2004
Posts: 134
This is how you do it..

In your jsp


In your Form


In your Action


SCJP,SCWCD,SCBCD,SCEA Part I
fabiano cruz
Greenhorn

Joined: Nov 25, 2004
Posts: 1
hi Sujatha,

how to get the server's path you are uploading the file to?

thks
fabiano
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: File Upload
 
Similar Threads
HTTPS File Uploader
Uploads rights, how long
Images is too big....
doPut()????
How can I upload a File using Struts