Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using JSF to open/view a text file in a browser

843844Jun 11 2008 — edited Jun 11 2008
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 9 2008
Added on Jun 11 2008
1 comment
358 views