File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts2 File Upload (Submit button) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 File Upload (Submit button)" Watch "Struts2 File Upload (Submit button)" New topic

Struts2 File Upload (Submit button)

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I have implemented Upload in Struts using s:file, But the problem is my manager wants an image on the Submit button (The button is generated by struts2). Please how can i accomplish this
Ankit Garg

Joined: Aug 03, 2008
Posts: 9462

Struts has nothing to do with this. The input field is just an <input type="file" /> tag, the browser renders the tag as a textbox and a button. You can find tricks like this to customize the file upload box...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Struts2 File Upload (Submit button)
It's not a secret anymore!