Found !!!
just executing this simple .reg file do the job without restarting anything.
(tested only with W2000 Server SP2)
-----------
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.bcl]
"Content Type"="application/barcode"
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/barcode]
"Extension"=".bc"
--------------
Although IE always ask for saving/opening the file (for security). This
behaviour could not be skipped (afaik).
Hope this trick could be useful for someone else.
P.S. modifing
/WEB-INF/conf/TurbineResources.conf
or
/TDK/conf/web.xml
has no effects (at least on my system)
Bye, Andrea.
> This one is hard:
>
> I use this portion of code to output a custom document which contains a
list
> of generated barcodes.
>
> -------------------------
> ...
> javax.servlet.http.HttpServletResponse r = data.getResponse();
>
> r.setContentType("application/BarCode");
>
> java.io.PrintWriter out = data.getOut();
>
> for (int cnt=0; cnt<counter; cnt++)
> {
> String tmpBC = barcode + util.toBase26(cnt, 3 );
> tmpBC = "*" + tmpBC + util.toBase26( util.checksum(tmpBC), 2 ) + "*";
> out.println( tmpBC );
> }
> ...
> -------------------------
>
> It works, but I cannot associate an extension to the generated file (which
> is handled by IE5.0 as 'actio' from <server>)
> Is it possible to associate the mime-type 'application/BarCode' to an
'.bc'
> extension?
> Should I modify something in the code or should I use the config files to
> associate mime-type and extension.
>
> I 'need' to have an extension so I can associate to it an external prg who
> drives a thermal printer and thus print the barcode labels directly from
the
> web page (I have already done it (in another application) with a servlet
> used under Oracle Application Server, but I had to set some properties of
> the server before).
>
> Sorry, I always post strange requests.
>
> Andrea
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]