Topic: 一个字体类型转换的错误!请教 |
Print this page |
1.一个字体类型转换的错误!请教 | Copy to clipboard |
Posted by: asdlcj Posted on: 2003-06-26 21:08 <%@ page language = "java" errorPage = "Error.jsp" import = "java.io.*,java.util.*" contentType = "text/html; charset=gb2312" %> <html> <head> <title>查看所有留言</title> </head> <body bgcolor="#CCCCCC"> <center> <font size="5"><b>查看所有留言</b></font> </center> <hr> <% String fileName = "E:/Tomcat 4.1/webapps/examples/Message.txt"; RandomAccessFile file = new RandomAccessFile (fileName, "r"); long filePointer = 0; while (filePointer < file.length ()) { String line = util.ISO2Gb (file.readLine ()); %> <%=line%> <% filePointer = file.getFilePointer (); } %> <p></p> <a href="Message.htm">还要留言</a> </body> </html> 错误提示: variable util location: class org.apache.jsp.AllMessage_jsp String line = util.ISO2Gb (file.readLine ()); 怎么回事啊? 我不是已经导入util类了吗? |
2.Re:一个字体类型转换的错误!请教 [Re: asdlcj] | Copy to clipboard |
Posted by: k_k_grass Posted on: 2003-06-27 19:32 1.use "//" in java.io String fileName = "E:/Tomcat 4.1/webapps/examples/Message.txt"; 2.有 util.ISO2Gb 这个类吗? |
3.Re:一个字体类型转换的错误!请教 [Re: asdlcj] | Copy to clipboard |
Posted by: asdlcj Posted on: 2003-06-28 00:37 util我自己构造的! 我明白了! 没放到文件夹! 谢谢了 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |