• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts2 File Upload (Submit button)

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!