<% BufferedReader input = new BufferedReader(new FileReader(“text2read.txt”)); String line = “”; while ((line = input.readLine()) != null) { out.println(line); } output.flush(); input.close(); %> Source: http://experts.about.com/q/JSP-Java-Server…xt-file-JSP.htm Additional example http://www.jguru.com/forums/view.jsp?EID=536740
Tag: Java EE
JBoss in Action
This book is divided into four parts, containing 15 chapters and two appendices. Chapter 1: The JBoss Application Server If you are using JBoss than you can simply skip Chapter 1. This chapter gets you up and running with JBoss by describing the directories and files that are part of JBoss AS, how to start…