Search code examples
netbeanswebproject

Netbeans Web application .html .jsp


When I open a new project in netbeans the IDE always creates index.html instead of index.jsp.

I am using the classfish server.

How do I get it to create the .jsp file?

This how I begin. Choose File > New Project (Ctrl-Shift-N) from the main menu. Under Categories, select Java Web. Under Projects, select Web Application then click Next.


Solution

  • This has changed (in 7.3.1 I believe). If you create Java Web project with JavaEE version set to "Java EE 7 Web", then it creates HTML page. If you choose e.g. "Java EE 6 Web", then it creates JSP page. I believe there is no way to change this behaviour.