Thanks 'Paul Sturrock’ for replying and showing intrest.
No I want to make just one servlate class which takes a digit at run time in its request.
then, I want to convert that digit in to the barcode.
After converting this, the barcode should save in pdf format.
I am using Apache Tomcat 5.5