Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 6th, 2005, 06:22 AM
Registered User
Join Date: Apr 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to swaminathanb
Default File Chooser in Servlet

Im developing a Knowledge Engine in servlet..I have a Browse button in an html page, if i click the Browse button the File Cooser dialog box should be displayed..

Can anyone with the idea and/or code, it will be very helpfull for me.

Mobile:+91 9886510453
Old March 19th, 2007, 03:15 PM
Registered User
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I realize that this last post is old, but I need the same thing. I tried using JFileChooser, but it throws a HeadlessException that I can't seem to figure out how to get by. I have a jsp page with a form and one of the buttons on the form is processed by a servlet which should open the file chooser, and save the file on the session once it has been selected. Thanks

Old March 26th, 2007, 11:49 PM
Friend of Wrox
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post


To use Swing or Applet componets which acces local file system in a html or jsp page you need to sign it first otherwise it'll throw a security exception. JFileChooser is one of those components which access local file system. You might be interested in signed applets concept, look for examples on signed applets.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regards Servlet file run in server sureshsdckap Apache Tomcat 1 July 13th, 2007 03:34 PM
how can i get input of file through servlet? myhrvod Servlets 1 March 26th, 2007 01:46 AM
Date Chooser / Picker pannet1 BOOK: CSS Instant Results 1 July 17th, 2006 03:18 PM
How Can I call a HTML file from a servlet? alf.guzman Servlets 3 January 24th, 2005 04:51 AM
Directory Chooser junayeed3 PHP How-To 0 February 7th, 2004 02:06 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.