
i have written a jsp page(ReadExt.jsp) in my application
which reads a text file content from a system .. but this ReadExt.jsp
page is not working in other system when i open that application
with using local host address.. plz help me in solving this problem..
tel me how can i make it work in other system also by using local IP address......

The given code reads the given file. It uses BufferedReader class to read that particular file.
<%@ page import="java.io.*" %>
<%
try{
BufferedReader reader = new BufferedReader(new FileReader("c:/data.txt"));
String text = "";
while ((text = reader.readLine()) != null) {
out.println(text);
}
}
catch(Exception e){}
%>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.