I had an application which has a
JSP which accesses a POJO.
The POJO in turn parses a CSV file and returns a
String[] for the JSP to consume.
I had the following directory structure.
css
html
images
jsp
WEB-INF
|--------
-classes
|----------------
-com
|---------------------
-dca
|------------------------
-delegate
|-------------------------------
CSVDelegate.class
|--------
-resources
|---------------
-dcalist.csv
and in the CSVDelegate.class , I am trying to access the CSV file as follows:
I tried to make a 'jar' file that contains the path "resources/dcalist.csv" and placed it in the WEB-INF/lib.
and nothing works. I did work on stuff like this earlier, but never had an problems.
Not sure if I did something wrong or just the
tomcat is just misbehaving.
I did delete the entire tomcat folder recreated it, recreated the server and tried several options of the path as well.
Annoyingly nothing works.