If by "print" you mean actually writing to a printer, here's a good link on how to write to a printer using java.
http://techrepublic.com.com/5100-22_11-5032710.html If you just want to see the data input and print it to a log file or to sysout, I'd suggest you look at the example web application that you get when you download
Struts. By examining the code you can sees you how the whole process works.
[ May 24, 2005: Message edited by: Merrill Higginson ]