First I have posted my query here in tomcat section, but I think this would be the right forum to ask https://coderanch.com/t/84787/Tomcat/reading-text-files
I have my java class files in tomcat
Text File folder is in
I need to get my helper java class to read and write the text file in 'textFiles' folder?
so from Tomcat section I got the response to write a servlet and get the context path. I don't have requests for the servlets from a webpage,
how can a java class request a servlet?
1)Can this be possible?
2)Is there any other way to do this without servlets?