Using JSF to open/view a text file in a browser
843844Jun 11 2008 — edited Jun 11 2008Hi,
I have developed a JSF application and one of the JSFpages reads from a unix directory and displays the contents of that directory.
How can i extend this functionality so that i can click on a file to view the contents in the browser?
Currently I am reading a file line by line using java.io and then displaying in a datatable but when the file is very large i get the following error:
javax.servlet.ServletException: javax.servlet.jsp.JspException: java.lang.OutOfMemoryError: Java heap space
Does anyone have any suggestions as i'm sure there must be a much simpler and easier way of doing this?!
Thanks in advance
Dan