How to specify a file path in web.xml file

Md. Naym Hossain :

i am developing an application in java and i am new to this java ee platform.I have a dataset file called "51Degrees-EnterpriseV3_2.dat" in my resource folder. how do i specify the path of this in my web.xml file and how do i retrieve the file in code?

Dulaj Kulathunga :

In web.xml , you can add

<context-param>
  <param-name>you can mention here localtion variable name</param-name>
  <param-value>location here </param-value>
</context-param>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=165171&siteId=1