user10101
user10101

Reputation: 379

change default page in war file

I have created a war file for my web application.I deployed it on Tomcat,it is working fine. My question is that if I have 3 jsp files like index.jsp,one.jsp,two.jsp, what if I want to run one.jsp first(not index.jsp) when I am running war file. Presently index.jsp is running primarily.I am using netbeans,is there any option in netbeans???

Upvotes: 1

Views: 8747

Answers (1)

ChadNC
ChadNC

Reputation: 2503

I think you can set that in web.xml in the WEB-INF folder by setting the welcome-file-list

normally it looks like

<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

change it to

 <welcome-file-list>
    <welcome-file>one.jsp</welcome-file>
</welcome-file-list>

Upvotes: 5

Related Questions