1

Can anybody help me out please?

I am trying to get demo.json data in Maven JSF Application. I want to store that json data into an ArrayList in Backing bean. Later I can display those list data into xhtml datatable format.

I placed demo.json in resources folder but still I am unable to read json data.

Any help would be appreciated!!!

Thanks in advance.

JavaStan
  • 30
  • 6
  • I believe resources folder is used when you need the file accessible from the outside (a browser). Since you don't seem to need that you could try to put it in web-inf and read it from there – Jaqen H'ghar Oct 11 '14 at 11:21

1 Answers1

0

resources is the correct location - make sure you are reading it using a technique similar to what is described here: How to really read text file from classpath in Java

Community
  • 1
  • 1
Khary Mendez
  • 1,818
  • 1
  • 14
  • 18