| Author |
Creating a "BROWSE" button on JSP Page
|
Mike London
Ranch Hand
Joined: Jul 12, 2002
Posts: 951
|
|
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
Joined: Dec 11, 2004
Posts: 13410
|
|
|
<input type="file" ....
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Tim McGuire
Ranch Hand
Joined: Apr 30, 2003
Posts: 819
|
|
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
Joined: Jul 12, 2002
Posts: 951
|
|
|
Thanks all!!!
|
 |
 |
|
|
subject: Creating a "BROWSE" button on JSP Page
|
|
|