Hello,
In my
servlet, it opens a file located on the server and gets its content (a special HTML
string), then it sets this content as an attribute and forward to a
JSP. In the JSP, it gets this content string and display it.
I know there are MANY ways to accomplish the same purpose. but, assuming I just want to open a file on the server and then read its content(String) and set in an attribute to JSP, the question is --- Since there will be MANY requests coming in, so is it safe to let the servlet open and read the file and then close it ? will there be
thread issue ? Be reminded, I ONLY read that file, I don't write or modify it.
Thanks,
mike