Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FileChooser Window  RSS feed

 
Swaminathan Balasubramani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

Can anyone tell me how to bring the FileChooser window( for example, if u click the Browse button in ur mail box to attach any file, u'l get a window through whicb u can access ur local hard disk to specify the source) in a servlet.

Actually im devoping a Knowledge Base where in one form the data about the file which has to updated into the server should given. i have a browse button in the form through which u can specify the source of the file which has to updated into the database which is present in the server.

with reagards
Swaminathan
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can anyone tell me how to bring the FileChooser window( for example, if u click the Browse button in ur mail box to attach any file, u'l get a window through whicb u can access ur local hard disk to specify the source) in a servlet


A servlet runs on the server so can't present anything like this to the client.

You can do this however via HTML. Use an <input /> with the attribute "type=file".
 
Swaminathan Balasubramani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

Thank you so much.

Cheers!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!