users@glassfish.java.net

Re: index.jsp cannot display?

From: <glassfish_at_javadesktop.org>
Date: Thu, 23 Jul 2009 23:26:56 PDT

In your application inside WEB-INF there is a file called web.xml

Open it in Notepad or any text editor... And search for the following tag "<welcome-file-list>" ..

I am sure your getting something like following...
[i] <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>Home.jsp</welcome-file>
    </welcome-file-list>[/i]

This contains the welcome file information, and it does not contain index.jsp.. so you can do change it to following or you can specify any name you wanna have as ur context root default page

[b] <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>[/b]

Good luck
[Message sent by forum member 'chameera' (chameera)]

http://forums.java.net/jive/thread.jspa?messageID=357376