AXDetduamma
New Member
I am creating a Spring MVC app that allows a user to download files.I have placed the files inside projectName\war\WEB-INF\applications.Inside the applications folder I have two sub folders called androidClient and blackberryClient. Each folder has the files that a user can download; however my Spring app cannot find these files.Below is a simple test method I used to prove that it does not work:\[code\]private static final String ANDROID_FILE_PATH = "../applications/androidClient/showcase-ft19-featureAll-Jolt-v83.apk";private static final String BLACKBERRY_FILE_PATH = "../applications/blackberryClient/showcase.ft19_1.3.0_full/showcase.jad";@Testpublic void testFilePath() { File fileAndroid = new File(ANDROID_FILE_PATH); File fileBB = new File(BLACKBERRY_FILE_PATH); logs.info("Android file path" + fileAndroid.getAbsolutePath()); logs.info("BB file path" + fileBB.getAbsolutePath()); assertTrue(fileAndroid.exists()); assertTrue(fileBB.exists());}\[/code\]Log output:\[quote\] 0 [main] INFO com.xxxx.controllers.MainPageController - Android file pathC:\Users\xxxx\Work\My side projects\xxxx..\applications\androidClient\showcase-ft19-featureAll-Jolt-v83.apk 1 [main] INFO com.xxxx.controllers.MainPageController - BB file pathC:\Users\xxxx\Work\My side projects\xxxx..\applications\blackberryClient\showcase.ft19_1.3.0_full\showcase.jad\[/quote\]