Q:if you want to tomcat in netbean instead of grassfish,how to do that?
A: First we must download tomcat in tomcat website. and install it. Second,netbean- tools -server , add the server you have installed.
Finally when new project, in step-server and set, choose tomcat server.