title: how to read a text file from server and display the text in index.jsp
body: <p>I am woking on web service.Now I have session folders for each user, and each user has it's log file there. Now I want to read log files from java and pass it to index.jsp for show. As I have already used <code>javax.servlet.http.HttpServletRequest req</code> - the <code>req.setAttribute(REQUEST_IS_LOG, log);</code> and <code>req.getRequestDispatcher("index.jsp").forward(req, res);</code> do not work for me. Can someone help me to find another way? How can I take the text from file in display it in index? 
  Are they any way to do this with ajax?
  Thank you in advance!</p>