In the first part I show you how to create the project in NetBeans and to get a first example running.
File -> New Project…
Select Maven as category and Web Application as Project. Click on Next afterwards.
After that the following screen is shown. Click again on Next.
On the last page click on Finish in ordewr to create the project. After the project is was created you can find the file index.html in the Web Pages folder.
Start the application