aspose file tools*
The moose likes JSP and the fly likes Opening File Chooser in a jsp Page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Opening File Chooser in a jsp Page?" Watch "Opening File Chooser in a jsp Page?" New topic
Author

Opening File Chooser in a jsp Page?

Jignesh Gohel
Ranch Hand

Joined: Dec 28, 2004
Posts: 276
Hi,

I want to make the user select a file from their local file system.That selection is to be done using a FileChooser dialog box like that of Windows.

Now using Swing i know how to do it but how it can be done in my JSP page using java??

If not using java then how can i get this done??

Thanks,
Jignesh
[ April 09, 2006: Message edited by: Bear Bibeault ]

Regards,
Jignesh

The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

HTML tag, <input type="file"> ?


[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61628
    
  67

File upload is covered in the JSP FAQ.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
stef li
Greenhorn

Joined: Jan 16, 2006
Posts: 27
you can use
<input type="file" name="test">


This guy is so lazy!!!<br />There is nothing left!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

no need to repeat
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61628
    
  67

"stef II",

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
JavaRanch Sheriff
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Opening File Chooser in a jsp Page?