Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a "BROWSE" button on JSP Page

 
Mike London
Ranch Hand
Posts: 1192
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is probably simple, but I can't find it in my books.

How do you create a "browse" button on a JSP page that lets the user select a file from his local file system?

Thanks in advance.

-- Mike
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you need the form to work, see file upload forms

I always forget the enctype attribute in forms that have file uploads:
the form tag must have:
 
Mike London
Ranch Hand
Posts: 1192
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic