aspose file tools*
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 9280

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)
Similar Threads
ajax and struts2
How to get the complete url of uploaded file in Struts2
unable to do validation for select in struts2
Struts2 iterator