Win a copy of Head First Android this week in the Android forum!

darius darius

Greenhorn
+ Follow
since Aug 04, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by darius darius

Originally posted by Javan Li:
Hi all, i've developed an application. But when i make it a war file. some error appear. for example:
When i try to read a xml file from /WEB-INF/xml/ as follow, it cannot find it:
String dir=context.getRealPath("/");
String file=dir + "/WEB-INF/xml/res.xml";
and this code doesn't work. What should i do??

i appreciate if u can help u!

18 years ago