This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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: 9291
    
  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)
 
Similar Threads
Struts2
unable to do validation for select in struts2
Struts2 iterator
ajax and struts2
How to get the complete url of uploaded file in Struts2