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]