0

web.xml contains the path for WEB-INF. This is how it looks on my local computer:

    <init-param>
        <param-name>webInfPath</param-name>
        <param-value>C:\\eclipse workspace\\...\\MyProject\\WEB-INF</param-value>
    </init-param>

I deployed my Java/JSP application to a Tomcat container in an Azure "App Service".

I need to specify the new path of WEB-INF in web.xml to reflect the deployment path.

How do I do this?

I have tried doing <%=servletContext.getRealPath("/")%> in a jsp to retrieve the filepath, but this fails due to not recognizing servletContext as a type

gordon613
  • 2,770
  • 12
  • 52
  • 81

1 Answers1

1

According to my test, The WEB-INF floder is under D:\home\site\wwwroot\webapps\ROOT in Azurer web app. The detailed steps are as below.

  1. Get Kudo

enter image description here 2.Get Path enter image description here