Dark theme | Light theme

June 13, 2008

Change URL to show when running webapp in Maven

For a Maven based web application project in NetBeans we can assign a server to be used. This server is for example Tomcat. When we execute the Run action on the project, Tomcat will be started and the web application's start page (usually /index.jsp) will be shown in a web browser.

We can change the page that is shown in the web browser when the project is run. We right-click on the project node and select Properties | Run. We can fill the Relative URL field with any URL we want for our web application.