The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Applet Authentication Problems with NT

Posted by Rich Sorensen on December 10, 2001 at 3:44 AM

I have a couple of Java applet questions:

The application is here is report/file viewing over the web for an MS IIS intranet. The Java applet presents a directory structure to web users via a Java JTree swing applet. The users navigate the directory tree, and when they click on a file, it downloads to their browser.

Everything works fine with authentication turned off. However when authentication is turned on (and the browser pops up the username/password box), the applet will also pop up an applet window asking for the same values. The reason for the pop-up is that the applet reads gif files from the web server (open and closed folder icons) to use in displaying the directory tree. My questions are:

1. How can I get the applet authentication turned off? (the credentials supplied in the login are sufficient to read the icon files from the web server).

2. Is there a way to include and compile graphic files as resources within a Java app so you don't have to read them from external files? (like you can do with VB and C++).


Rich Sorensen


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us