@WebServlet("/helloview") public class HelloServlet extends >welcome-file-list>
<welcome-file>indexhtml</welcome-file>
</welcome-file-list>
改这个就行了webxml中没听说过输入项目名进页面的
进入时的首页到可以设置
<welcome-file-list>
<welcome-file>indexjsp</welcome-file>
</welcome-file-list>在webxml文件里有一小段代码,如下:
<welcome-file-list>
<welcome-file>indexjsp(在这里设置自己的欢迎页,这里以indexjsp为例)</welcome-file>
</welcome-file-list>1,在webapps中建立一个文件夹aa再在aa中建立WEB-INF文件夹,
2,在WEB_INF中复制一个webxml
文件
,3,再在WEB-INF中创建classes文件夹和lib文件夹
4,往lib文件夹里面加入所需要的包
5,在aa文件夹中建立page文件夹用来存放jsp文件
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)