This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes Opening File Chooser in a jsp Page? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply 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: 14685
    
  16

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


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

Joined: Jan 10, 2002
Posts: 56554
    
  14

File upload is covered in the JSP FAQ.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 14685
    
  16

no need to repeat
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56554
    
  14

"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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Opening File Chooser in a jsp Page?
 
Similar Threads
Action to be done in init - JSP
How to include errorpage in xhtml page.
referring function in parent jsp from the included jsp
referring function in parent jsp from the included jsp
How to compile JSP?