File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "File Upload" Watch "File Upload" New topic

File Upload

DVVN Sudhakara Rao

Joined: Oct 04, 2004
Posts: 17
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

fabiano cruz

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

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

It is sorta covered in the JavaRanch Style Guide.
subject: File Upload
It's not a secret anymore!