servlet as welcome-file-list in tomcat 7

后端 未结 1 1390
深忆病人
深忆病人 2021-01-12 14:09

I am trying to have a servlet (non-jsp) as my welcome-file in tomcat 7, and the only way I can do it is

by having it mapped to \"/\" url-pattern, otherwise it retur

1条回答
  •  无人共我
    2021-01-12 14:56

    I don't know what URL patterns you all tried, but mapping the servlet on /credentialServlet or /credentialServlet/* should definitely work.

    
        credentialServlet
        com.servlet.CredentialServlet
    
    
        credentialServlet
        /credentialServlet
    
    
    
        credentialServlet
      
    

    0 讨论(0)
提交回复
热议问题