Hi,
I am brand new to servlets...and to JAVA for that matter. I have a project
that has been
puzzling me for about 4 weeks now. I understand the doGet doPost methods
which are
part of the project which will allow users to update one of three *.txt
files...
At the moment I am retrieving *.txt file. under a directory on an APACHE
server.
....this is the part of the logic which always displays the entire table
(which I do not want,
I want the appropriate person to display on a web page depending upon date
and time)
I am just finding appropriate code to modify at this point since I am not
comfortable writing my own
servlets yet, so I couldn't tell you anything about how it was written:
...
try {
FileReader file = new FileReader(OSSoncall);
BufferedReader buff = new BufferedReader(file);
boolean eof = false;
while (!eof) {
String line = buff.readLine();
if (line == null)
eof = true;
else {
StringTokenizer st = new StringTokenizer(line);
out.println("<tr>");
while(st.hasMoreTokens()) {
out.println("<td><font size=-2>" + st.nextToken() + "</font></td>");
}
out.println("</tr>");
}//end else (line not null)
until I get something on the mainframe and can put in some standard SQL or
JDBC statements, it looks like
I will need to do something to the SERVLET code.
Any pointers, Ideas would be greatly appreciated.
Kelsey
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html