Two Laptop Bag*
The moose likes JSP and the fly likes how to use file chooser in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "how to use file chooser in jsp" Watch "how to use file chooser in jsp" New topic
Author

how to use file chooser in jsp

parmi_gowda
Greenhorn

Joined: Aug 29, 2005
Posts: 7
Hi ,

how to use file chooser in jsp
Madhu Kaparapu
Ranch Hand

Joined: Jul 04, 2005
Posts: 35
Use the following html code in your jsp page and you will get the file chooser dialog box at client browser side.
<form METHOD=post ACTION="JspFileName.jsp"
ENCTYPE="multipart/form-data">
<input TYPE="file" NAME="filename">
</form>


Regards,
Madhu Kaparapu.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61306
    
  66

"Paramesh HS",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: how to use file chooser in jsp