I created these 2 applications i.e JavaApplet and WebApplication and integrated them using the following link :
Integrating an Applet in Web Application
The Applet was running reading the text file correctly which was located at "src/new1.txt" before integration.
But when this Java Applet project library was integrated(as shown in the NETBEANS forum link) in WebApplication project(jsp)...then it was unable to read the file but the applet was visible with no error(but was not showing results of file read).
So, where the file should be kept. I would like to mention that I only want this WebApplication project as it's part of the currently running website.
The whole thing is working correctly but after integration it stopped reading the file at "src/new1.txt".
I can't keep the file at another location, it should be under NETBEANS PROJECT location and should read the file even after integration.