Hi all,
my web application contain
jsp and support class(Bean).
in jsp i use BeanClass,
in BeanClass, some function read file content just like new File("/resource/file1.txt");
i put BeanClass.class in /WEB-INF/classes folder and jsp file under application context(/).
when i call BeanClass's function from jsp FileNotFound Exception occurs and it search file under %tomcat_directory%\webapps\resource\file1.txt even though i expected the path will be /my_context/resource/file1.txt
I'd like to know that how to point path relatively in BeanClass. I dont want to pass realPath from jsp to the bean. how can Bean will point dependently to the certain file location.
thanks,
kaze