Java Servlet does not Display Barcode
If the Java Servlet is not displaying the barcode, verify the data that is encoded does not contain any of the reserved characters for HTML.
The following link is a source code example that uses the Servlet without HTML:
http://www.javabarcoding.com/applets-vs-servets.html#Servlet