This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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

 
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: 42974
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: 42974
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!