This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 File Upload (Submit button)" Watch "Struts2 File Upload (Submit button)" New topic
Author

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
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

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: http://aspose.com/file-tools
 
subject: Struts2 File Upload (Submit button)