[jcifs] jCIFS NetworkExplorer example

Jonathon Simon jsimon at ud.com
Wed Oct 4 17:34:14 GMT 2006


Hello,
 
I got NetworkExplorer to work by editing the java with a static path to my smb share.
 
i.e.
.
.
if ( ntlm != null ) {
    file = new SmbFile ( "smb://jst422/wwwsoftcache/from/" );
} else if ( server == null ) {
    file = new SmbFile ( "smb://jst422/wwwsoftcache/from/" );
} else {
    file = new SmbFile ( "smb://jst422/wwwsoftcache/from/" );
}
.
.
.
 
Now, in my browser, when I access NetworkExplorer as  http://localhost:8080/sollerasa/common/NetworkExplorer, I get a listing of the files in the /from/ directory, as expected.  However, when I mouse hover over any one of the files, the resulting link is not the smb share path + filename.  Instead, the resulting link is actually something like  http://localhost:8080/sollerasa/common/file1.exe...  as if the file is within my web container.  But it's not; the file is located on a network cifs share.
 
Shouldn't the resulting link actually resolve to the smb share + filename, which would then allow me to download the file by clicking the link?
 
Thanks very much,
Jonathon

---------------------------------------------------------------------

Notice from United Devices Postmaster:


This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. This message has been content scanned by the UD Tumbleweed MailGate.


---------------------------------------------------------------------
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list