Well your question does not make sense. I am not a java developer, but NetBeans is a development enviroment, while tomcat is a server. There is no relationship between them
I am assuming you have installed and configure Netbeans and tomcat server. So you question might be how to depoly your app to tomcat server.
Ask
google then