
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.. here i have used java code in jsp page ... and 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 have any query regrading this, then please post your code.

The code pasted above is good for files placed on local system. What if I want to access a file on a different system?
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.