Netbeans Web application .html .jsp

送分小仙女□ 提交于 2020-01-06 08:07:43

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/18455250/netbeans-web-application-html-jsp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!