views:

23

answers:

3

I'm working on a dynamic web project in eclipse ee, and i couldn't figure out where to specify the homepage, i.e. the page which is displayed first when I deploy the project to the server. Thanks in advance

A: 

I found this answer to be helpful (especially as I am using the Google App Engine).

http://stackoverflow.com/questions/1030302/how-can-i-map-a-root-servlet-so-that-other-scripts-are-still-runnable

Phil McT
A: 

Specify a welcome file in your web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns="http://java.sun.com/xml/ns/javaee" 
  xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

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

</web-app>
Pascal Thivent
A: 

index.jsp should map to this by default, or you can use as mentioned in some other answers.

jayshao