Netbeans Web应用程序.html .jsp [英] Netbeans Web application .html .jsp
问题描述
当我在netbeans中打开一个新项目时,IDE总是创建index.html而不是index.jsp.
When I open a new project in netbeans the IDE always creates index.html instead of index.jsp.
我正在使用classfish服务器.
I am using the classfish server.
如何获取以创建.jsp文件?
How do I get it to create the .jsp file?
这就是我的开始方式. 从主菜单中选择文件">新建项目"(Ctrl-Shift-N).在类别下,选择Java Web.在项目"下,选择"Web应用程序",然后单击下一步".
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.
推荐答案
这已更改(我相信在7.3.1中).如果您创建的Java Web项目的JavaEE版本设置为"Java EE 7 Web",则它将创建HTML页面.如果您选择"Java EE 6 Web",然后创建JSP页面.我相信没有办法改变这种行为.
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.
这篇关于Netbeans Web应用程序.html .jsp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!