Reputation: 51
When I run a java web project it always opens in my browser the "index.html" page, so I want to choose another page when the project starts.
How can I do it? Thanks in advance.
Upvotes: 1
Views: 1956
Reputation: 17363
Configure the URL to be used when you run your project as follows:
/WebApplication1
in the sample screen shot below. Leave that field alone./Servlet1
, so this will be be appended to the context path of /WebApplication1
to build the URL http://localhost:8080/WebApplication1/Servlet1
to be used when the application is run.Browsing: http://localhost:8080/WebApplication1/Servlet1
near the bottom of the screen shot.Upvotes: 2