Here's the HTML content used to generate the above images:
<img src="..../BarcodeServlet?image=3&type=6&data=123458"> <img src="..../BarcodeServlet?image=3&type=9&data=1234567&barwidth=2"> <img src="..../BarcodeServlet?image=3&type=3&data=12345678901&rotate=3"> <img src="..../BarcodeServlet?image=3&type=22&data=95020-342740&height=15"> or <img src="barcode.jsp?image=3&type=6&data=123458"> <img src="barcode.jsp?image=3&type=9&data=1234567&barwidth=2"> <img src="barcode.jsp?image=3&type=3&data=12345678901&rotate=3"> <img src="barcode.jsp?image=3&type=22&data=95020-342740&height=15">(replace .... with the actual path.)
So you just need to use the barcode.jsp file the same way you would an image file. You pass in parameters the same way you would pass to a CGI program.
This example assumes that barcode.jsp is hosted in the same directory as the HTML file using it; otherwise you would need to specify its full URL, which could point to a different web server on a different machine where barcode.jsp is hosted (and BarCode/JSP installed).