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

    Default Java web application execution


    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
    Rep Power

    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, 03:27 PM
  2. Java JAR file execution
    By darklink.perry in forum Advanced Java
    Replies: 2
    Last Post: 08-17-2012, 10:24 AM
  3. Replies: 6
    Last Post: 11-30-2011, 09:39 PM
  4. Replies: 10
    Last Post: 11-29-2010, 03:02 PM
  5. Script execution from java
    By umapathy_sekar in forum Advanced Java
    Replies: 7
    Last Post: 09-17-2010, 06: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