[jcifs] We have a screenshot!

Gabriel Lawrence gabe at landq.org
Tue Aug 20 10:24:34 EST 2002


Put the mime.map file in the jar and then use ClassLoader.getResource to
get a stream on the file...

-gabe

On Mon, 2002-08-19 at 17:04, Allen, Michael B (RSCH) wrote:
> You know it's funny you should ask because resin's implementation of getMimeType()
> always returns "application/octet-stream". I was hoping someone would enlighten me about
> what I'm doing wrong. Not real good with Servlets yet. If it's just broken, I have a small
> class and a mime.map file but it's not obvious to me how one should include the
> mime.map file in the distribution (I suppose I could put it in the jar and use java.util.zip to
> extract it).
> 
> Anyway, the answer is yes, if the link is a directory it will display the contents of that
> directory. If the link is a file it downloads the file (currently inappropriately as
> application/octet-stream). I would be happy if you adopted the code and develop it further.
> It's the kind of thing I'd rather pass off to someone else. Or at least you might look at the
> way it uses a { display: block; float: left. There are no tables! See attached sample html
> source.
> 
> As soon as I do 64 bit SmbFileXxxputStream offsets for files > 4GB, add copying
> LastModifiedTime in SMB_COM_CLOSE (really only copyTo will benifit I think), and and a
> proper available() method for Named Pipes I'll do a 0.7.0b2.
> 
> Mike
> 
>  <<Network_Explorer.html>> 
> 
> > -----Original Message-----
> > From:	Michael Dunston [SMTP:michael.dunston at oracle.com]
> > Sent:	Monday, August 19, 2002 7:49 PM
> > To:	jcifs at samba.org
> > Subject:	RE: [jcifs] We have a screenshot!
> > 
> > Michael,
> > 	I am actually looking at doing something quite similar to this for an
> > internal app.. When you click on one of the links (in the screenshot it is a
> > pdf file) does it send down the mime type and then data (as if a typical
> > download link)?
> > 
> > Mike
> > 
> > > -----Original Message-----
> > > From: jcifs-admin at lists.samba.org [mailto:jcifs-admin at lists.samba.org]On
> > > Behalf Of Allen, Michael B (RSCH)
> > > Sent: Monday, August 19, 2002 4:33 PM
> > > To: 'jcifs at samba.org'
> > > Subject: [jcifs] We have a screenshot!
> > >
> > >
> > > I uploaded a screen capture of the soon to be released
> > > jcifs.http.NetworkExplorer
> > > servlet browsing my workstation at the freshmeat project page.
> > >
> > >   http://freshmeat.net/projects/jcifs/
> > >
> > > This works with Mozilla on Linux too which might be a real easy
> > > way for newbies
> > > to browse there Windows files. If the jcifs.http.NtlmHttpFilter
> > > is enabled, the users
> > > credentials will be used to access SMB resources.
> > >
> > >
> > 
> ----
> 
NameSizeTypeModified


smb://miallen2/pub/
60 objects (4 directories, 56 files)
normal | detailed

↑ jcifs/ variety/ WebReporter_files/ wr3screen_shots/
1mozilla-win32-1.0-talkback.zip
10961KB 
06/19/02 10:47 PM 20117108.pdf
43KB 
06/20/02 9:54 PM app.zip
4KB 
08/11/02 5:09 PM arg.bmp
3331KB 
07/2/02 8:10 PM arg.doc
100KB 
07/2/02 8:03 PM arg2.doc
97KB 
07/2/02 8:22 PM CIFS-TR-1p00.pdf
662KB 
07/29/02 5:53 PM corrupt.doc
84KB 
08/1/02 7:19 PM createnp.exe
32KB 
07/11/02 6:57 PM DELLgrismodel.xls
135KB 
07/14/02 10:34 PM Earnings Model is Missing.doc
23KB 
07/19/02 12:46 AM GRISXL.DOC
115KB 
11/13/00 11:27 AM interim.DOC
180KB 
08/15/02 12:01 AM io1.csv
6KB 
06/19/02 7:23 PM io2.csv
1KB 
06/19/02 7:20 PM ios.csv
4KB 
06/19/02 7:48 PM ios.xls
24KB 
06/19/02 7:50 PM k.doc
109KB 
06/27/02 6:47 PM links-1.csv
1KB 
06/25/02 9:04 PM links.csv
6KB 
08/4/02 10:46 PM m.html
2KB 
07/24/02 7:14 PM March03Elections.doc
101KB 
07/2/02 8:34 PM menu.html
2KB 
07/24/02 7:22 PM Merlyn 2.4.3 Smoke Test - ARMS.doc
103KB 
06/20/02 9:41 PM Michael B Allen Test Cases 4.xls
18KB 
08/14/02 6:37 PM mime.txt
5KB 
06/27/02 6:05 PM mljs.cap
58KB 
08/9/02 3:32 AM mlx.cap
581KB 
07/14/02 10:49 PM ne.png
11KB 
08/19/02 6:56 PM ntlm.log
2KB 
08/6/02 12:25 AM ntlm.out
2KB 
08/6/02 12:12 AM ntlm.pcap
6KB 
08/6/02 12:08 AM NtlmHttpAuthExample.java
0KB 
08/5/02 8:10 PM NtlmHttpSession.java
5KB 
08/6/02 12:25 AM ora-00904.gif
105KB 
06/20/02 8:31 PM out.csv
2KB 
08/14/02 12:56 AM out.html
80KB 
07/15/02 11:20 PM QRQ2.xml
3KB 
08/4/02 11:47 PM scat.cap
64KB 
07/28/02 8:25 PM SmbFilePatch.diff
0KB 
08/12/02 6:52 PM smoketest.txt
0KB 
06/20/02 9:52 PM sqlnet.log
0KB 
06/20/02 9:37 PM sqlnet.ora
1KB 
08/1/02 6:03 PM support 062502.doc
119KB 
06/24/02 8:34 PM t1.txt
1KB 
07/14/02 8:00 PM test.cap
65KB 
07/14/02 10:42 PM TheTwoTowers_fs.l.mov
36554KB 
06/28/02 5:08 PM TheTwoTowers_fs.zip
35099KB 
07/10/02 9:41 PM tmp.html
0KB 
07/10/02 12:01 AM WebReporter.htm
0KB 
07/30/02 11:53 PM Winamp.zip
1684KB 
06/20/02 6:45 PM wr3_0.psp
236KB 
08/7/02 12:18 AM wr3_1.psp
248KB 
08/7/02 12:22 AM wr3_2.psp
1032KB 
08/7/02 12:50 AM WrPrintMacro.xls
23KB 
08/7/02 7:35 PM z160702-SRO II-FINAL Plus.doc
3990KB 
08/13/02 7:03 PM 





More information about the jcifs mailing list