Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Save to excel-take path from user

 
Tapas Chand
Ranch Hand
Posts: 549
8
BSD Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am saving some records in an excel file on click of a button
currently i am hardcoding the path like

but i want to take the path from user,i.e.,something like 'save as' option
how can i do it?
please help.
Thanks in advance.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a form field?

Note, however, that you, the server-side web application, cannot write to arbitrary locations on the client-side (browser) hard drive. If you want the user to be able to save the file anywhere then you need to have the user (browser) download the file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic