• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How applet can be used to browse for all files in a folder without refresing the page?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently using an applet to browse for all files in a folder, but refreshing the page is still needed.

Is there an alternative process to browse for all files in a folder without refreshing the page?

Is there an alternative way to browse for all files in a folder, if I don't use an applet?

Thank you very much for your answer.

 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the files/folders on the client or on the server? Either way, why is a page refresh necessary?
 
Pira Tomatsu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Files are on the client. Are there any ways to browse for all files in a folder,If I don't use applet?

The applet needs refresh for JSP to get the session which written by a servlet. Any advise for me? Am I doing these things properly?

Thank you for your answers.
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Are there any ways to browse for all files in a folder, If I don't use applet?


HTML file uploads limits you to selecting a single file at a time, but you can have multiple file uploads at the same time. But you can't select folders.

The applet needs refresh for JSP to get the session which written by a servlet.


Do you mean that there is data in the server session that the applet needs to access after the page has (with the applet) has been rendered? If so, why can't the applet open an URLConnection to the server that returns that value? Refreshing the page seems unnecessary and disruptive.
 
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic