Results 1 to 2 of 2
  1. #1
    onetech is offline Member
    Join Date
    Jan 2015
    Posts
    2
    Rep Power
    0

    Default Java web application execution

    Hi,

    I have recently started learning web applications in java. I have a doubt described below:

    I created a dynamic web application using eclipse, but I did not added web.xml i.e deployment descriptor file. Then a jsp file named index.jsp is added in web content folder.I deployed the application and it worked by showing the index.jsp as welcome page.

    Now, my question is, nowhere I have specified index.jsp as welcome page, so how the index.jsp page is displayed without using web.xml file?

  2. #2
    trcooke is offline Tim Cooke
    Join Date
    Jul 2014
    Location
    Belfast
    Posts
    101
    Rep Power
    0

    Default Re: Java web application execution

    Most web servers and servlet containers have a list of built in welcome page URL's that it will try in the absence of any specific configuration. The will usually look for a file called 'index' with a variation of suffixes, .html .htm .jsp, are quite common.

    I suspect whatever container you are using has index.jsp configured as a built in default.

Similar Threads

  1. Execution of Swing application on another pc
    By ksaketh2 in forum Advanced Java
    Replies: 5
    Last Post: 04-09-2014, 02:27 PM
  2. Java JAR file execution
    By darklink.perry in forum Advanced Java
    Replies: 2
    Last Post: 08-17-2012, 09:24 AM
  3. Replies: 6
    Last Post: 11-30-2011, 08:39 PM
  4. Replies: 10
    Last Post: 11-29-2010, 02:02 PM
  5. Script execution from java
    By umapathy_sekar in forum Advanced Java
    Replies: 7
    Last Post: 09-17-2010, 05:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •