在eclipse中创建jsp项目,需要 tomact 支持,下载解压后,打开eclipse,依次点击:window-preferences-server-runtime environments-add;添加tomact;
重新启动eclipse,点击:file-new-project;找到web下面的Dynamic Web project即可创建jsp项目;
之后在WebContent目录下创建jsp file文件即可;
运行jsp项目,运行之前需要加载tomact;在eclipse下方的工具栏中找到Servers;如果已添加tomact就可以直接启动项目,如果没有点击那一排文字添加tomact服务器;