M_x_r
M_x_r

Reputation: 604

Configure web app to display an index page in JBoss 7 (with Maven)

I am trying to get my JBoss web application project to land on a simple index page. It's a Maven managed project.

The index page consists of a form that the client can input a name. Then JAX RS returns the clients name to screen.

I am not sure if my configuration is correct.

Upvotes: 0

Views: 3146

Answers (1)

Put your index page in src/main/webapp, say index.html, and add the following to your web.xml:

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

Upvotes: 1

Related Questions