eclipse dynamic web project - default start page

前端 未结 5 1611
一整个雨季
一整个雨季 2020-12-31 11:05

I created in Eclipse dynamic web project, I have index.html in WEB-INF folder. I click on the main folder of the project Run as > Run on server chose Tomcat v7.0, finish, a

5条回答
  •  情歌与酒
    2020-12-31 11:49

    1) How can I change the default page ?

    => change welcome file list in web.xml. Change to your desired filename whichever you are using.

    2) can I put in default page asp file ?

    => you can change extension to asp, but you need servlet mapping in web.xml. But if you are talking about Microsoft ASP pages, I think you won't be able to add them as per my knowledge as both(jsp and asp) resides under different technologies

    EDIT :

    
    
      MyFirstServlet
      
        index.html
        index.htm
        index.jsp
        default.html
        default.htm
        default.jsp
      
      
        new
        GrettingServlet
        GrettingServlet
        GrettingServlet
      
      
        GrettingServlet
        /greetings.asp
      
    
    

    Here you will make request to GreetingServlet using url http://localhost:8080/myapp/greetings.asp

提交回复
热议问题