File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes How applet can be used to browse for all files in a folder without refresing the page? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How applet can be used to browse for all files in a folder without refresing the page? " Watch "How applet can be used to browse for all files in a folder without refresing the page? " New topic
Author

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

Pira Tomatsu
Greenhorn

Joined: Sep 01, 2009
Posts: 14
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.

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
Are the files/folders on the client or on the server? Either way, why is a page refresh necessary?


Ping & DNS - my free Android networking tools app
Pira Tomatsu
Greenhorn

Joined: Sep 01, 2009
Posts: 14
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
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How applet can be used to browse for all files in a folder without refresing the page?